Teach the walker about Super and MetaProperty

This commit is contained in:
Marijn Haverbeke 2015-03-20 17:51:50 +01:00
parent 2ed8f8f2b8
commit 659f2c9091

View File

@ -227,7 +227,7 @@ base.Function = (node, st, c) => c(node.body, st, "ScopeBody")
base.ScopeBody = (node, st, c) => c(node, st, "Statement")
base.Expression = skipThrough
base.ThisExpression = ignore
base.ThisExpression = base.Super = base.MetaProperty = ignore
base.ArrayExpression = base.ArrayPattern = (node, st, c) => {
for (let i = 0; i < node.elements.length; ++i) {
let elt = node.elements[i]