diff --git a/samples/hello-world.cc b/samples/hello-world.cc index c38c76022c..8be5a31fca 100644 --- a/samples/hello-world.cc +++ b/samples/hello-world.cc @@ -47,13 +47,15 @@ int main(int argc, char* argv[]) { Context::Scope context_scope(context); // Create a string containing the JavaScript source code. - Local source = String::NewFromUtf8(isolate, "'Hello' + ', World!'"); + Local source = + String::NewFromUtf8(isolate, "'Hello' + ', World!'", + NewStringType::kNormal).ToLocalChecked(); // Compile the source code. - Local