Browse Source

Fixed errors thrown in .onerror

v1.x
Tj Holowaychuk 14 years ago
parent
commit
a91a44c9ed
  1. 4
      src/Image.cc

4
src/Image.cc

@ -229,8 +229,12 @@ Image::error(TryCatch &try_catch) {
FatalException(try_catch);
} else {
Local<Value> argv[1] = { try_catch.Exception() };
TryCatch try_catch2;
onerror->Call(Context::GetCurrent()->Global(), 1, argv);
onerror.Dispose();
if (try_catch2.HasCaught()) {
FatalException(try_catch2);
}
}
}

Loading…
Cancel
Save