Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
make compatible witn node 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
kesla committed Feb 7, 2015
1 parent 6a52e6f commit 9567757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class UncompressWorker : public NanAsyncWorker {
v8::Local<v8::Value> res;
if (asBuffer) {
res = NanNewBufferHandle(dst.length());
memcpy(node::Buffer::Data(res), dst.c_str(), dst.length());
memcpy(node::Buffer::Data(res.As<v8::Object>()), dst.c_str(), dst.length());
} else {
res = NanNew<v8::String>(dst.c_str(), dst.length());
}
Expand Down

0 comments on commit 9567757

Please sign in to comment.