chore: fix V8 deprecation warnings (#15842)
This commit is contained in:
parent
455f0669e7
commit
81e00d8e56
9 changed files with 32 additions and 22 deletions
|
@ -11,8 +11,10 @@ namespace atom {
|
|||
namespace util {
|
||||
|
||||
Promise::Promise(v8::Isolate* isolate) {
|
||||
auto context = isolate->GetCurrentContext();
|
||||
auto resolver = v8::Promise::Resolver::New(context).ToLocalChecked();
|
||||
isolate_ = isolate;
|
||||
resolver_.Reset(isolate, v8::Promise::Resolver::New(isolate));
|
||||
resolver_.Reset(isolate, resolver);
|
||||
}
|
||||
|
||||
Promise::~Promise() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue