Browse Source

failing test

gh-953
Rich-Harris 8 years ago
parent
commit
f95db4bfc4
  1. 3
      test/form/side-effect-s/_config.js
  2. 6
      test/form/side-effect-s/_expected/amd.js
  3. 4
      test/form/side-effect-s/_expected/cjs.js
  4. 2
      test/form/side-effect-s/_expected/es.js
  5. 7
      test/form/side-effect-s/_expected/iife.js
  6. 10
      test/form/side-effect-s/_expected/umd.js
  7. 7
      test/form/side-effect-s/main.js

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

@ -0,0 +1,3 @@
module.exports = {
description: 'omits assignments to objects owned by unused identifiers'
};

6
test/form/side-effect-s/_expected/amd.js

@ -0,0 +1,6 @@
define(function () { 'use strict';
console.log( 'before' );
console.log( 'after' );
});

4
test/form/side-effect-s/_expected/cjs.js

@ -0,0 +1,4 @@
'use strict';
console.log( 'before' );
console.log( 'after' );

2
test/form/side-effect-s/_expected/es.js

@ -0,0 +1,2 @@
console.log( 'before' );
console.log( 'after' );

7
test/form/side-effect-s/_expected/iife.js

@ -0,0 +1,7 @@
(function () {
'use strict';
console.log( 'before' );
console.log( 'after' );
}());

10
test/form/side-effect-s/_expected/umd.js

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

7
test/form/side-effect-s/main.js

@ -0,0 +1,7 @@
console.log( 'before' );
function Unused () {}
Unused.prototype.toString = function () {
return 'unused';
};
console.log( 'after' );
Loading…
Cancel
Save