[Pkg-javascript-commits] [node-lexical-scope] 62/83: upgrade astw for es6 support
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:45:51 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 ef3d57943f27de5bc8e4ea4a02de2b5ea359f587
Author: James Halliday <mail at substack.net>
Date: Fri Jan 31 22:26:15 2014 -0800
upgrade astw for es6 support
---
index.js | 4 +++-
package.json | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/index.js b/index.js
index 535cbe3..7ce0e37 100644
--- a/index.js
+++ b/index.js
@@ -5,7 +5,9 @@ module.exports = function (src) {
var implicit = {};
var exported = {};
- src = String(src).replace(/^#![^\n]*\n/, '');
+ if (typeof src === 'string') {
+ src = String(src).replace(/^#![^\n]*\n/, '');
+ }
var walk = astw(src);
walk(function (node) {
diff --git a/package.json b/package.json
index 47346b9..a39b85b 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"description": "detect global and local lexical identifiers from javascript source code",
"main": "index.js",
"dependencies": {
- "astw": "~0.0.0"
+ "astw": "~0.1.0"
},
"devDependencies": {
"tap": "~0.4.0",
--
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