Tj Holowaychuk 14 years ago
parent
commit
d11f2503c7
  1. 6
      src/Image.cc

6
src/Image.cc

@ -188,9 +188,9 @@ Image::loaded() {
void
Image::error(Local<Value> err) {
if (onerror.IsEmpty()) {
// TODO:
} else {
HandleScope scope;
// TODO: handle exception in onerror segfault
if (!onerror.IsEmpty()) {
Local<Value> argv[1] = { err };
onerror->Call(Context::GetCurrent()->Global(), 1, argv);
}

Loading…
Cancel
Save