| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d3bc72e commit b8ca616
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,15 +41,17 @@ static void Callback(uv_work_t* req, int ignored) { | |||
| 41 | 41 | ||
| 42 | 42 | v8::Local<v8::Promise::Resolver> local = | |
| 43 | 43 | v8::Local<v8::Promise::Resolver>::New(isolate, persistent); | |
| 44 | - local->Resolve(v8::Undefined(isolate)); | ||
| 44 | + local->Resolve(isolate->GetCurrentContext(), | ||
| 45 | + v8::Undefined(isolate)).ToChecked(); | ||
| 45 | 46 | delete req; | |
| 46 | 47 | } | |
| 47 | 48 | ||
| 48 | 49 | static void TestResolveAsync(const v8::FunctionCallbackInfo<v8::Value>& args) { | |
| 49 | 50 | v8::Isolate* isolate = args.GetIsolate(); | |
| 50 | 51 | ||
| 51 | 52 | if (persistent.IsEmpty()) { | |
| 52 | - persistent.Reset(isolate, v8::Promise::Resolver::New(isolate)); | ||
| 53 | + persistent.Reset(isolate, v8::Promise::Resolver::New( | ||
| 54 | + isolate->GetCurrentContext()).ToLocalChecked()); | ||
| 53 | 55 | ||
| 54 | 56 | uv_work_t* req = new uv_work_t; | |
| 55 | 57 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments