| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2262e7c commit d497f26
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1460,8 +1460,8 @@ static MaybeLocal<Promise> ImportModuleDynamically( | |||
| 1460 | 1460 | ||
| 1461 | 1461 | Local<PrimitiveArray> options = referrer->GetHostDefinedOptions(); | |
| 1462 | 1462 | if (options->Length() != HostDefinedOptions::kLength) { | |
| 1463 | - Local<Promise::Resolver> resolver = | ||
| 1464 | - Promise::Resolver::New(context).ToLocalChecked(); | ||
| 1463 | + Local<Promise::Resolver> resolver; | ||
| 1464 | + if (!Promise::Resolver::New(context).ToLocal(&resolver)) return {}; | ||
| 1465 | 1465 | resolver | |
| 1466 | 1466 | ->Reject(context, | |
| 1467 | 1467 | v8::Exception::TypeError(FIXED_ONE_BYTE_STRING( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments