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

Commit

Permalink
Merge pull request #44 from kesla/node-0.8
Browse files Browse the repository at this point in the history
Bring back support for node 0.8
  • Loading branch information
kesla committed Feb 7, 2015
2 parents a449993 + 9567757 commit f51f282
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: node_js
sudo: false
node_js:
- "0.8"
- "0.10"
- "0.12"
- "iojs"
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 f51f282

Please sign in to comment.