| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index b25a7b1af2054bb060ade921caa3911f5a20330f..544c8c7d8d115bd0b36c1789cd5c45f847737f16 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -859,7 +859,7 @@ FunctionLiteral* Parser::DoParseProgram(CompilationInfo* info,
|
| FunctionLiteral* result = NULL;
|
| { Scope* scope = NewScope(scope_, GLOBAL_SCOPE);
|
| info->SetGlobalScope(scope);
|
| - if (!info->context().is_null()) {
|
| + if (!info->context().is_null() && !info->context()->IsNativeContext()) {
|
| scope = Scope::DeserializeScopeChain(*info->context(), scope, zone());
|
| // The Scope is backed up by ScopeInfo (which is in the V8 heap); this
|
| // means the Parser cannot operate independent of the V8 heap. Tell the
|
|
|