diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc index 18f15af477..b0f77f45db 100644 --- a/test/cctest/test-parsing.cc +++ b/test/cctest/test-parsing.cc @@ -3308,7 +3308,7 @@ TEST(SerializationOfMaybeAssignmentFlag) { v8::Local v = CompileRun(src); i::Handle o = v8::Utils::OpenHandle(*v); i::Handle f = i::Handle::cast(o); - i::Context context = f->context(); + i::Handle context(f->context(), isolate); i::AstValueFactory avf(&zone, isolate->ast_string_constants(), HashSeed(isolate)); const i::AstRawString* name = avf.GetOneByteString("result"); @@ -3318,7 +3318,7 @@ TEST(SerializationOfMaybeAssignmentFlag) { i::DeclarationScope* script_scope = new (&zone) i::DeclarationScope(&zone, &avf); i::Scope* s = i::Scope::DeserializeScopeChain( - isolate, &zone, context.scope_info(), script_scope, &avf, + isolate, &zone, context->scope_info(), script_scope, &avf, i::Scope::DeserializationMode::kIncludingVariables); CHECK(s != script_scope); CHECK_NOT_NULL(name); @@ -3358,7 +3358,7 @@ TEST(IfArgumentsArrayAccessedThenParametersMaybeAssigned) { v8::Local v = CompileRun(src); i::Handle o = v8::Utils::OpenHandle(*v); i::Handle f = i::Handle::cast(o); - i::Context context = f->context(); + i::Handle context(f->context(), isolate); i::AstValueFactory avf(&zone, isolate->ast_string_constants(), HashSeed(isolate)); const i::AstRawString* name_x = avf.GetOneByteString("x"); @@ -3367,7 +3367,7 @@ TEST(IfArgumentsArrayAccessedThenParametersMaybeAssigned) { i::DeclarationScope* script_scope = new (&zone) i::DeclarationScope(&zone, &avf); i::Scope* s = i::Scope::DeserializeScopeChain( - isolate, &zone, context.scope_info(), script_scope, &avf, + isolate, &zone, context->scope_info(), script_scope, &avf, i::Scope::DeserializationMode::kIncludingVariables); CHECK(s != script_scope);