[Pkg-javascript-commits] [node-lexical-scope] 24/83: use already defined es5isms

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:45:47 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 53c7722974983b88fb766de4308fb3bc7fa0c91c
Author: James Halliday <mail at substack.net>
Date:   Fri Mar 1 22:02:19 2013 -0800

    use already defined es5isms
---
 index.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index 65e8161..6987a49 100644
--- a/index.js
+++ b/index.js
@@ -157,11 +157,11 @@ function indexOf (xs, x) {
 }
 
 function walk (node, parent, cb) {
-    Object.keys(node).forEach(function (key) {
+    objectKeys(node).forEach(function (key) {
         if (key === 'parent') return;
         
         var child = node[key];
-        if (Array.isArray(child)) {
+        if (isArray(child)) {
             child.forEach(function (c) {
                 if (c && typeof c.type === 'string') {
                     c.parent = node;

-- 
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