Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

no longer use ObjectWrap::Unwrap for Buffer

as it was causing a failed assertion at runtime:
Assertion failed: (handle->InternalFieldCount() > 0), function Unwrap,
file ../src/node_object.wrap.h, line 52.
Abort trap
  • Loading branch information...
commit df3f6b0c5e264602491e64cb2a670504e3cffa85 1 parent a0fd478
@snd snd authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/fixed_jpeg_stack.cpp
2  src/fixed_jpeg_stack.cpp
@@ -195,7 +195,7 @@ FixedJpegStack::Push(const Arguments &args)
return VException("Fifth argument must be integer h.");
FixedJpegStack *jpeg = ObjectWrap::Unwrap<FixedJpegStack>(args.This());
- Buffer *data_buf = ObjectWrap::Unwrap<Buffer>(args[0]->ToObject());
+ Local<Object> data_buf = args[0]->ToObject();
int x = args[1]->Int32Value();
int y = args[2]->Int32Value();
int w = args[3]->Int32Value();
Please sign in to comment.
Something went wrong with that request. Please try again.