[Pkg-javascript-commits] [uglifyjs] 87/190: Make arguments test slightly more strict

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Aug 7 23:17:15 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag upstream/2.7.0
in repository uglifyjs.

commit 8439c8ba9813faaea062b64306cbd0b2a448bb20
Author: Anthony Van de Gejuchte <anthonyvdgent at gmail.com>
Date:   Fri Jan 15 00:04:05 2016 +0100

    Make arguments test slightly more strict
---
 test/mocha/arguments.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/mocha/arguments.js b/test/mocha/arguments.js
index 294a6c1..089826f 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list