src: fix v8 compiler warnings in src

This commit changes the code to use the maybe version.

PR-URL: https://github.com/nodejs/node/pull/24246
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
Daniel Bevenius committed 2018-11-11 08:02:30 +01:00
1 parent 19e5e78e9c
commit 344d33eef1
34 files changed
+414 -213

No files matched your search

+3 -1
View File
@@ -490,7 +490,9 @@ void InitWorker(Local<Object> target,
Local<String> workerString =
FIXED_ONE_BYTE_STRING(env->isolate(), "Worker");
w->SetClassName(workerString);
target->Set(workerString, w->GetFunction(env->context()).ToLocalChecked());
target->Set(env->context(),
workerString,
w->GetFunction(env->context()).ToLocalChecked()).FromJust();
}
env->SetMethod(target, "getEnvMessagePort", GetEnvMessagePort);