| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3032f0f commit 103479a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -498,10 +498,10 @@ bool InitializePrimordials(Local<Context> context) { | |||
| 498 | 498 | MaybeLocal<Function> maybe_fn = | |
| 499 | 499 | native_module::NativeModuleEnv::LookupAndCompile( | |
| 500 | 500 | context, *module, ¶meters, nullptr); | |
| 501 | - if (maybe_fn.IsEmpty()) { | ||
| 501 | + Local<Function> fn; | ||
| 502 | + if (!maybe_fn.ToLocal(&fn)) { | ||
| 502 | 503 | return false; | |
| 503 | 504 | } | |
| 504 | - Local<Function> fn = maybe_fn.ToLocalChecked(); | ||
| 505 | 505 | MaybeLocal<Value> result = | |
| 506 | 506 | fn->Call(context, Undefined(isolate), arraysize(arguments), arguments); | |
| 507 | 507 | // Execution failed during context creation. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments