[Pkg-javascript-commits] [node-detective] 12/119: passing the require("str")() test now
Bastien Roucariès
rouca at moszumanska.debian.org
Wed Sep 6 09:44:30 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-detective.
commit 013e54e902179b72f1e8a0708cb20b6e4c04dc3d
Author: James Halliday <mail at substack.net>
Date: Sun Jun 19 18:20:59 2011 -0700
passing the require("str")() test now
---
index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.js b/index.js
index f7af476..31a2066 100644
--- a/index.js
+++ b/index.js
@@ -23,7 +23,7 @@ exports.find = function (src) {
}
}
- var isDotRequire = node.name === 'dot'
+ var isDotRequire = (node.name === 'dot' || node.name === 'call')
&& node.value[0][0] === 'call'
&& node.value[0][1][0] === 'name'
&& node.value[0][1][1] === 'require'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-detective.git
More information about the Pkg-javascript-commits
mailing list