| Index: test/cctest/test-js-a64-variables.cc
|
| diff --git a/test/cctest/test-js-a64-variables.cc b/test/cctest/test-js-a64-variables.cc
|
| index 670b5cdfe1b94f9b3e61621922bd141626d4083f..df3f4a8295bf4ed79b3bd5c48159cb94dbb51e29 100644
|
| --- a/test/cctest/test-js-a64-variables.cc
|
| +++ b/test/cctest/test-js-a64-variables.cc
|
| @@ -70,8 +70,8 @@ static void ExpectInt32(int32_t expected, Local<Value> result) {
|
|
|
| // Global variables.
|
| TEST(global_variables) {
|
| - v8::HandleScope scope;
|
| LocalContext env;
|
| + v8::HandleScope scope(env->GetIsolate());
|
| Local<Value> result = CompileRun(
|
| "var x = 0;"
|
| "function f0() { return x; }"
|
| @@ -82,8 +82,8 @@ TEST(global_variables) {
|
|
|
| // Parameters.
|
| TEST(parameters) {
|
| - v8::HandleScope scope;
|
| LocalContext env;
|
| + v8::HandleScope scope(env->GetIsolate());
|
| Local<Value> result = CompileRun(
|
| "function f1(x) { return x; }"
|
| "f1(1);");
|
| @@ -93,8 +93,8 @@ TEST(parameters) {
|
|
|
| // Stack-allocated locals.
|
| TEST(stack_allocated_locals) {
|
| - v8::HandleScope scope;
|
| LocalContext env;
|
| + v8::HandleScope scope(env->GetIsolate());
|
| Local<Value> result = CompileRun(
|
| "function f2() { var x = 2; return x; }"
|
| "f2();");
|
| @@ -104,8 +104,8 @@ TEST(stack_allocated_locals) {
|
|
|
| // Context-allocated locals. Local function forces x into f3's context.
|
| TEST(context_allocated_locals) {
|
| - v8::HandleScope scope;
|
| LocalContext env;
|
| + v8::HandleScope scope(env->GetIsolate());
|
| Local<Value> result = CompileRun(
|
| "function f3(x) {"
|
| " function g() { return x; }"
|
| @@ -118,8 +118,8 @@ TEST(context_allocated_locals) {
|
|
|
| // Local function reads x from an outer context.
|
| TEST(read_from_outer_context) {
|
| - v8::HandleScope scope;
|
| LocalContext env;
|
| + v8::HandleScope scope(env->GetIsolate());
|
| Local<Value> result = CompileRun(
|
| "function f4(x) {"
|
| " function g() { return x; }"
|
| @@ -132,8 +132,8 @@ TEST(read_from_outer_context) {
|
|
|
| // Local function reads x from an outer context.
|
| TEST(lookup_slots) {
|
| - v8::HandleScope scope;
|
| LocalContext env;
|
| + v8::HandleScope scope(env->GetIsolate());
|
| Local<Value> result = CompileRun(
|
| "function f5(x) {"
|
| " with ({}) return x;"
|
|
|