Index: test/cctest/test-random.cc |
diff --git a/test/cctest/test-random.cc b/test/cctest/test-random.cc |
index 430355ca5a7dbd3e484899932273a9c873f9a079..0a8594c04e1c72da47d37df64c9f306d69bf55b0 100644 |
--- a/test/cctest/test-random.cc |
+++ b/test/cctest/test-random.cc |
@@ -81,8 +81,8 @@ TEST(CrankshaftRandom) { |
CompileRun("function f() { return Math.random(); }"); |
- Object* string = FACTORY->InternalizeOneByteString(STATIC_ASCII_VECTOR("f"))-> |
- ToObjectChecked(); |
+ Object* string = Isolate::Current()->factory()->InternalizeOneByteString( |
+ STATIC_ASCII_VECTOR("f"))->ToObjectChecked(); |
MaybeObject* fun_object = |
context->global_object()->GetProperty(String::cast(string)); |
Handle<JSFunction> fun(JSFunction::cast(fun_object->ToObjectChecked())); |