Permalink
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...
snd committed Dec 19, 2011
1 parent a0fd478 commit df3f6b0c5e264602491e64cb2a670504e3cffa85
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/fixed_jpeg_stack.cpp
View
@@ -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();

0 comments on commit df3f6b0

Please sign in to comment.