Super!
This commit is contained in:
@@ -1361,7 +1361,9 @@ function parse($TEXT, options) {
|
||||
|
||||
function _make_symbol(type) {
|
||||
var name = S.token.value;
|
||||
return new (name == "this" ? AST_This : type)({
|
||||
return new (name == "this" ? AST_This :
|
||||
name == "super" ? AST_Super :
|
||||
type)({
|
||||
name : String(name),
|
||||
start : S.token,
|
||||
end : S.token
|
||||
@@ -1481,6 +1483,7 @@ function parse($TEXT, options) {
|
||||
function is_assignable(expr) {
|
||||
if (!options.strict) return true;
|
||||
if (expr instanceof AST_This) return false;
|
||||
if (expr instanceof AST_Super) return false;
|
||||
return (expr instanceof AST_PropAccess || expr instanceof AST_Symbol);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user