| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b41affb commit 066ca98
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -171,11 +171,11 @@ MaybeLocal<Value> ExecuteBootstrapper(Environment* env, | |||
| 171 | 171 | MaybeLocal<Function> maybe_fn = | |
| 172 | 172 | NativeModuleEnv::LookupAndCompile(env->context(), id, parameters, env); | |
| 173 | 173 | ||
| 174 | - if (maybe_fn.IsEmpty()) { | ||
| 174 | + Local<Function> fn; | ||
| 175 | + if (!maybe_fn.ToLocal(&fn)) { | ||
| 175 | 176 | return MaybeLocal<Value>(); | |
| 176 | 177 | } | |
| 177 | 178 | ||
| 178 | - Local<Function> fn = maybe_fn.ToLocalChecked(); | ||
| 179 | 179 | MaybeLocal<Value> result = fn->Call(env->context(), | |
| 180 | 180 | Undefined(env->isolate()), | |
| 181 | 181 | arguments->size(), | |
| Back | FazBrowse Home | New Git URL |
0 commit comments