aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/lib/node.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/node.js b/js/lib/node.js
index 6c15761..89172d7 100644
--- a/js/lib/node.js
+++ b/js/lib/node.js
@@ -167,7 +167,7 @@ var toASTNode = function(node) {
var propsToShow = ['t', 'literal', 'list_data', 'sourcepos',
'info', 'level'];
- for (var i = 0; i < propsToShow.length; i++) {
+ for (var i = 0, len = propsToShow.length; i < len; i++) {
var prop = propsToShow[i];
if (node[prop] !== undefined) {
result[prop] = node[prop];