| Index: test/cctest/test-parsing.cc
|
| diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
|
| index 1c1c9683dab5bece28bef7a2ec5775e39b866f8e..fa9e29d1c91ebdd10dd55d020248133a6156d617 100644
|
| --- a/test/cctest/test-parsing.cc
|
| +++ b/test/cctest/test-parsing.cc
|
| @@ -3321,7 +3321,8 @@ TEST(SerializationOfMaybeAssignmentFlag) {
|
| const i::AstRawString* name = avf.GetOneByteString("result");
|
| i::Handle<i::String> str = name->string();
|
| CHECK(str->IsInternalizedString());
|
| - i::DeclarationScope* script_scope = new (&zone) i::DeclarationScope(&zone);
|
| + i::DeclarationScope* script_scope =
|
| + new (&zone) i::DeclarationScope(&zone, &avf);
|
| i::Scope* s = i::Scope::DeserializeScopeChain(
|
| isolate, &zone, context, script_scope, &avf,
|
| i::Scope::DeserializationMode::kKeepScopeInfo);
|
| @@ -3368,7 +3369,8 @@ TEST(IfArgumentsArrayAccessedThenParametersMaybeAssigned) {
|
| i::AstValueFactory avf(&zone, isolate->heap()->HashSeed());
|
| avf.Internalize(isolate);
|
|
|
| - i::DeclarationScope* script_scope = new (&zone) i::DeclarationScope(&zone);
|
| + i::DeclarationScope* script_scope =
|
| + new (&zone) i::DeclarationScope(&zone, &avf);
|
| i::Scope* s = i::Scope::DeserializeScopeChain(
|
| isolate, &zone, context, script_scope, &avf,
|
| i::Scope::DeserializationMode::kKeepScopeInfo);
|
|
|