now it works for all of #1183. This should do it.

This commit is contained in:
Maxwell Krohn
2012-04-11 18:22:52 -04:00
parent 5542e00b80
commit 7b66e22bc6
3 changed files with 13 additions and 3 deletions

View File

@@ -2910,7 +2910,7 @@
return node instanceof Literal && node.value === 'arguments' && !node.asKey;
},
literalThis: function(node) {
return (node instanceof Literal && node.value === 'this' && !node.asKey) || (node instanceof Code && node.bound);
return (node instanceof Literal && node.value === 'this' && !node.asKey) || (node instanceof Code && node.bound) || (node instanceof Call && node.isSuper);
}
};