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