|
@ -254,6 +254,7 @@ Image::loaded() { |
|
|
void |
|
|
void |
|
|
Image::error(Local<Value> err) { |
|
|
Image::error(Local<Value> err) { |
|
|
HandleScope scope; |
|
|
HandleScope scope; |
|
|
|
|
|
// TODO: properly dispose
|
|
|
// TODO: handle exception in onerror segfault
|
|
|
// TODO: handle exception in onerror segfault
|
|
|
if (!onerror.IsEmpty()) { |
|
|
if (!onerror.IsEmpty()) { |
|
|
Local<Value> argv[1] = { err }; |
|
|
Local<Value> argv[1] = { err }; |
|
|