Browse Source

additional side effect test

better-aggressive
Rich-Harris 9 years ago
parent
commit
3db1236024
  1. 3
      test/form/side-effect-l/_config.js
  2. 5
      test/form/side-effect-l/_expected/amd.js
  3. 1
      test/form/side-effect-l/_expected/cjs.js
  4. 0
      test/form/side-effect-l/_expected/es6.js
  5. 5
      test/form/side-effect-l/_expected/iife.js
  6. 9
      test/form/side-effect-l/_expected/umd.js
  7. 6
      test/form/side-effect-l/foo.js
  8. 1
      test/form/side-effect-l/main.js

3
test/form/side-effect-l/_config.js

@ -0,0 +1,3 @@
module.exports = {
description: 'discards function with no side-effects in imported module'
};

5
test/form/side-effect-l/_expected/amd.js

@ -0,0 +1,5 @@
define(function () { 'use strict';
});

1
test/form/side-effect-l/_expected/cjs.js

@ -0,0 +1 @@
'use strict';

0
test/form/side-effect-l/_expected/es6.js

5
test/form/side-effect-l/_expected/iife.js

@ -0,0 +1,5 @@
(function () { 'use strict';
})();

9
test/form/side-effect-l/_expected/umd.js

@ -0,0 +1,9 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define === 'function' && define.amd ? define(factory) :
factory();
}(this, function () { 'use strict';
}));

6
test/form/side-effect-l/foo.js

@ -0,0 +1,6 @@
export default function foo () {
bar();
function bar () {}
}
var x = foo();

1
test/form/side-effect-l/main.js

@ -0,0 +1 @@
import './foo.js';
Loading…
Cancel
Save