Fix calls to deprecated node::ThrowError API
This commit is contained in:
parent
04d24f61fe
commit
132c13a11b
9 changed files with 43 additions and 41 deletions
|
@ -189,7 +189,8 @@ void Window::OnDevToolsClosed() {
|
|||
mate::Wrappable* Window::New(v8::Isolate* isolate,
|
||||
const mate::Dictionary& options) {
|
||||
if (!Browser::Get()->is_ready()) {
|
||||
node::ThrowError("Cannot create BrowserWindow before app is ready");
|
||||
node::ThrowError(isolate,
|
||||
"Cannot create BrowserWindow before app is ready");
|
||||
return nullptr;
|
||||
}
|
||||
return new Window(options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue