Fix calls to deprecated node::ThrowError API

This commit is contained in:
Cheng Zhao 2015-06-10 14:21:09 +08:00
parent 04d24f61fe
commit 132c13a11b
9 changed files with 43 additions and 41 deletions

View file

@ -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);