mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
19e5e78e9c
commit
344d33eef1
34 files changed
+414
-213
No files matched your search
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user