Merge branch 'master' into harmony-v3.0.24

This commit is contained in:
alexlamsl
2017-07-08 13:12:54 +08:00
15 changed files with 706 additions and 228 deletions

View File

@@ -1160,7 +1160,7 @@ TreeWalker.prototype = {
if (!ret && descend) {
descend.call(node);
}
this.pop(node);
this.pop();
return ret;
},
parent: function(n) {
@@ -1179,8 +1179,8 @@ TreeWalker.prototype = {
}
this.stack.push(node);
},
pop: function(node) {
this.stack.pop();
pop: function() {
var node = this.stack.pop();
if (node instanceof AST_Lambda || node instanceof AST_Class) {
this.directives = Object.getPrototypeOf(this.directives);
}