No longer use vm to load code.

Improves performance 2x on node > 0.10.

Ref #636
This commit is contained in:
Mihai Bazon
2015-09-24 17:57:47 +03:00
parent 33528002b4
commit 99233c44cc
4 changed files with 27 additions and 31 deletions

View File

@@ -81,6 +81,7 @@ function DEFNODE(type, props, methods, base) {
ctor.DEFMETHOD = function(name, method) {
this.prototype[name] = method;
};
exports["AST_" + type] = ctor;
return ctor;
};