| Index: src/scopes.h
|
| diff --git a/src/scopes.h b/src/scopes.h
|
| index 412ad853f6208a1e94e42c1973f4d759840e478a..f0007681f62cbf6dc9c4819098aace87104c9517 100644
|
| --- a/src/scopes.h
|
| +++ b/src/scopes.h
|
| @@ -88,7 +88,7 @@ class Scope: public ZoneObject {
|
| scope_name_ = scope_name;
|
| }
|
|
|
| - void Initialize(bool uninitialized_this = false);
|
| + void Initialize(bool subclass_constructor = false);
|
|
|
| // Checks if the block scope is redundant, i.e. it does not contain any
|
| // block scoped declarations. In that case it is removed from the scope
|
| @@ -344,9 +344,12 @@ class Scope: public ZoneObject {
|
| // The language mode of this scope.
|
| LanguageMode language_mode() const { return language_mode_; }
|
|
|
| - // The variable corresponding the 'this' value.
|
| + // The variable corresponding to the 'this' value.
|
| Variable* receiver() { return receiver_; }
|
|
|
| + // The variable corresponding to the 'new.target' value.
|
| + Variable* new_target_var() { return new_target_; }
|
| +
|
| // The variable holding the function literal for named function
|
| // literals, or NULL. Only valid for function scopes.
|
| VariableDeclaration* function() const {
|
| @@ -520,6 +523,8 @@ class Scope: public ZoneObject {
|
| Variable* receiver_;
|
| // Function variable, if any; function scopes only.
|
| VariableDeclaration* function_;
|
| + // new.target variable, function scopes only.
|
| + Variable* new_target_;
|
| // Convenience variable; function scopes only.
|
| Variable* arguments_;
|
| // Interface; module scopes only.
|
|
|