| Index: src/parsing/parser-base.h
|
| diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h
|
| index 7bde0a721bf8f3c4f07bdbbb4c3ac55229652c35..c0f77fe5f94d90fac03ba100256ecf8df0c50307 100644
|
| --- a/src/parsing/parser-base.h
|
| +++ b/src/parsing/parser-base.h
|
| @@ -254,6 +254,10 @@ class ParserBase : public Traits {
|
|
|
| void set_stack_limit(uintptr_t stack_limit) { stack_limit_ = stack_limit; }
|
|
|
| + Scope* NewScriptScope() {
|
| + return new (zone()) Scope(zone(), nullptr, SCRIPT_SCOPE, kNormalFunction);
|
| + }
|
| +
|
| protected:
|
| enum AllowRestrictedIdentifiers {
|
| kAllowRestrictedIdentifiers,
|
| @@ -615,10 +619,6 @@ class ParserBase : public Traits {
|
| Mode old_mode_;
|
| };
|
|
|
| - Scope* NewScriptScope() {
|
| - return new (zone()) Scope(zone(), nullptr, SCRIPT_SCOPE, kNormalFunction);
|
| - }
|
| -
|
| Scope* NewScope(ScopeType scope_type) {
|
| return NewScopeWithParent(scope(), scope_type);
|
| }
|
|
|