Index: test/cctest/test-random.cc |
diff --git a/test/cctest/test-random.cc b/test/cctest/test-random.cc |
index 55879bf519e5962fa10f7ecec01e6bcfff65b515..32b626e8564975d16d593201ab5f94e836e99e5f 100644 |
--- a/test/cctest/test-random.cc |
+++ b/test/cctest/test-random.cc |
@@ -83,10 +83,10 @@ TEST(CrankshaftRandom) { |
CompileRun("function f() { return Math.random(); }"); |
- Object* symbol = FACTORY->LookupOneByteSymbol(STATIC_ASCII_VECTOR("f"))-> |
+ Object* string = FACTORY->InternalizeOneByteString(STATIC_ASCII_VECTOR("f"))-> |
ToObjectChecked(); |
MaybeObject* fun_object = |
- context->global_object()->GetProperty(String::cast(symbol)); |
+ context->global_object()->GetProperty(String::cast(string)); |
Handle<JSFunction> fun(JSFunction::cast(fun_object->ToObjectChecked())); |
// Optimize function. |