From b4911cb81be6a68674af1da4fdf820770811f6ba Mon Sep 17 00:00:00 2001 From: yimi Date: Mon, 18 Sep 2017 07:24:24 +0000 Subject: [PATCH] fix --- lib/ast.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ast.js b/lib/ast.js index fde574c5..b73d2ebe 100644 --- a/lib/ast.js +++ b/lib/ast.js @@ -74,7 +74,7 @@ function DEFNODE(type, props, methods, base) { if (type) { ctor.prototype.TYPE = ctor.TYPE = type; } - if (methods) for (i in methods) if (HOP(methods, i)) { + if (methods) for (var i in methods) if (HOP(methods, i)) { if (/^\$/.test(i)) { ctor[i.substr(1)] = methods[i]; } else {