diff options
Diffstat (limited to 'test/mocha/ie8.js')
-rw-r--r-- | test/mocha/ie8.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/mocha/ie8.js b/test/mocha/ie8.js deleted file mode 100644 index 2187047b..00000000 --- a/test/mocha/ie8.js +++ /dev/null @@ -1,21 +0,0 @@ -var assert = require("assert"); -var UglifyJS = require("../.."); - -describe("ie8", function() { - it("Should be able to minify() with undefined as catch parameter in a try...catch statement", function() { - assert.strictEqual( - UglifyJS.minify([ - "function a(b){", - " try {", - " throw 'Stuff';", - " } catch (undefined) {", - " console.log('caught: ' + undefined);", - " }", - " console.log('undefined is ' + undefined);", - " return b === undefined;", - "};", - ].join("\n")).code, - 'function a(o){try{throw"Stuff"}catch(o){console.log("caught: "+o)}return console.log("undefined is "+void 0),void 0===o}' - ); - }); -}); |