From: Anthony Van de Gejuchte Date: Thu, 14 Jan 2016 23:04:05 +0000 (+0100) Subject: Make arguments test slightly more strict X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8439c8ba9813faaea062b64306cbd0b2a448bb20;p=UglifyJS.git Make arguments test slightly more strict --- diff --git a/test/mocha/arguments.js b/test/mocha/arguments.js index 294a6c16..089826fc 100644 --- a/test/mocha/arguments.js +++ b/test/mocha/arguments.js @@ -6,7 +6,10 @@ describe("arguments", function() { var ast = UglifyJS.parse("var arguments; var f = function() {arguments.length}"); ast.figure_out_scope(); - // Select symbol in function + // Test scope of `var arguments` + assert.strictEqual(ast.find_variable("arguments").global, true); + + // Select arguments symbol in function var symbol = ast.body[1].definitions[0].value.find_variable("arguments"); assert.strictEqual(symbol.global, false);