Implement new.target

This commit is contained in:
Fábio Santos
2015-11-21 14:48:23 +00:00
parent e076abdbf2
commit a800356ad0
4 changed files with 23 additions and 0 deletions

View File

@@ -1003,6 +1003,10 @@ var AST_Symbol = DEFNODE("Symbol", "scope name thedef", {
$documentation: "Base class for all symbols",
});
var AST_NewTarget = DEFNODE("NewTarget", null, {
$documentation: "A reference to new.target"
});
var AST_SymbolAccessor = DEFNODE("SymbolAccessor", null, {
$documentation: "The name of a property accessor (setter/getter function)"
}, AST_Symbol);