[Pkg-javascript-commits] [node-lexical-scope] 18/83: passing test for property lookups

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:45:46 UTC 2017


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

rouca pushed a commit to branch master
in repository node-lexical-scope.

commit 4e440dd8565b1498693df3e2eb6a0848598bfdc5
Author: James Halliday <mail at substack.net>
Date:   Thu Feb 21 03:55:37 2013 -0800

    passing test for property lookups
---
 test/detect.js         | 2 +-
 test/files/detect.js   | 3 +++
 test/sources/detect.js | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/test/detect.js b/test/detect.js
index e7ee3dc..9c2b2ce 100644
--- a/test/detect.js
+++ b/test/detect.js
@@ -7,7 +7,7 @@ test('check locals and globals', function (t) {
     
     var scope = detect(src);
     t.same(scope.globals.implicit, [
-        'w', 'foo', 'process', 'console', 'xyz'
+        'w', 'foo', 'process', 'console', 'AAA', 'BBB', 'CCC', 'xyz'
     ]);
     t.same(scope.globals.exported, [
         'w', 'RAWR', 'BLARG', 'ZZZ'
diff --git a/test/files/detect.js b/test/files/detect.js
index 6213514..cb9c6f2 100644
--- a/test/files/detect.js
+++ b/test/files/detect.js
@@ -19,6 +19,9 @@ foo(function () {
         ZZZ=6;
     });
     function doom () {
+        if (AAA.aaa) {}
+        BBB.bbb = 3;
+        var z = 2 + CCC.x * 5;
     }
     ZZZ.foo();
 
diff --git a/test/sources/detect.js b/test/sources/detect.js
index b463899..8e56306 100644
--- a/test/sources/detect.js
+++ b/test/sources/detect.js
@@ -1 +1 @@
-module.exports = "var x = 5;\nvar y = 3, z = 2;\n\nw.foo();\nw = 2;\n\nRAWR=444;\nRAWR.foo();\n\nBLARG=3;\n\nfoo(function () {\n    var BAR = 3;\n    process.nextTick(function (ZZZZZZZZZZZZ) {\n        console.log('beep boop');\n        var xyz = 4;\n        x += 10;\n        x.zzzzzz;\n        ZZZ=6;\n    });\n    function doom () {\n    }\n    ZZZ.foo();\n\n});\n\nfunction beep () {}\n\nconsole.log(xyz);\n"
+module.exports = "var x = 5;\nvar y = 3, z = 2;\n\nw.foo();\nw = 2;\n\nRAWR=444;\nRAWR.foo();\n\nBLARG=3;\n\nfoo(function () {\n    var BAR = 3;\n    process.nextTick(function (ZZZZZZZZZZZZ) {\n        console.log('beep boop');\n        var xyz = 4;\n        x += 10;\n        x.zzzzzz;\n        ZZZ=6;\n    });\n    function doom () {\n        if (AAA.aaa) {}\n        BBB.bbb = 3;\n        var z = 2 + CCC.x * 5;\n    }\n    ZZZ.foo();\n\n});\n\nfunction beep () {}\n\nconsole.log(xyz);\n"

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



More information about the Pkg-javascript-commits mailing list