Index: test/cctest/test-random.cc |
diff --git a/test/cctest/test-random.cc b/test/cctest/test-random.cc |
index a1f49318f5ed20bcbfa3c8550ebbda7fafd2d016..86d6d8c144914ddc9d48ecd505b8c24188a0cb9f 100644 |
--- a/test/cctest/test-random.cc |
+++ b/test/cctest/test-random.cc |
@@ -52,7 +52,7 @@ void TestSeeds(Handle<JSFunction> fun, |
uint32_t state0, |
uint32_t state1) { |
bool has_pending_exception; |
- Handle<JSObject> global(context->global()); |
+ Handle<JSObject> global(context->global_object()); |
Handle<ByteArray> seeds(context->random_seed()); |
SetSeeds(seeds, state0, state1); |
@@ -77,7 +77,7 @@ TEST(CrankshaftRandom) { |
env->Enter(); |
Handle<Context> context(Isolate::Current()->context()); |
- Handle<JSObject> global(context->global()); |
+ Handle<JSObject> global(context->global_object()); |
Handle<ByteArray> seeds(context->random_seed()); |
bool has_pending_exception; |
@@ -85,7 +85,7 @@ TEST(CrankshaftRandom) { |
Object* symbol = FACTORY->LookupAsciiSymbol("f")->ToObjectChecked(); |
MaybeObject* fun_object = |
- context->global()->GetProperty(String::cast(symbol)); |
+ context->global_object()->GetProperty(String::cast(symbol)); |
Handle<JSFunction> fun(JSFunction::cast(fun_object->ToObjectChecked())); |
// Optimize function. |