Skip to content

Commit

Permalink
Fix handle scope creation in async code
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Aug 8, 2015
1 parent d98ae29 commit 3a662b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ build
node_modules
npm-debug.log
coverage
core
2 changes: 1 addition & 1 deletion src/lzma-stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ void LZMAStream::invokeBufferHandlers(bool async, bool hasLock) {
};
_ScopeGuard guard(this);

Nan::HandleScope();
Nan::HandleScope scope;

Local<Function> bufferHandler = Local<Function>::Cast(EmptyToUndefined(Nan::Get(handle(), NewString("bufferHandler"))));
std::vector<uint8_t> outbuf;
Expand Down

0 comments on commit 3a662b9

Please sign in to comment.