Index: test/cctest/test-compiler.cc |
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc |
index 6e9a17cec84a5188c7168c04b5801e5a9d799b67..cc9258aa15643e40be6b30ae9c66b92d334c85b5 100644 |
--- a/test/cctest/test-compiler.cc |
+++ b/test/cctest/test-compiler.cc |
@@ -56,8 +56,8 @@ static void SetGlobalProperty(const char* name, Object* value) { |
static Handle<JSFunction> Compile(const char* source) { |
Isolate* isolate = CcTest::i_isolate(); |
- Handle<String> source_code( |
- isolate->factory()->NewStringFromUtf8(CStrVector(source))); |
+ Handle<String> source_code = isolate->factory()->NewStringFromUtf8( |
+ CStrVector(source)).ToHandleChecked(); |
Handle<SharedFunctionInfo> shared_function = |
Compiler::CompileScript(source_code, |
Handle<String>(), |