diff options
author | Trevor Norris <trev.norris@gmail.com> | 2013-09-05 15:50:51 -0700 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2013-09-05 15:56:34 -0700 |
commit | f218d94af4a7f70086c931be01b1bed9c76bfee0 (patch) | |
tree | 28ee278c67411b40396c0a0a3d90bd54f4a8947e /deps/npm/man/man3 | |
parent | 6df4741f840832886716145cf81654d5a0a9e2e0 (diff) | |
download | node-new-f218d94af4a7f70086c931be01b1bed9c76bfee0.tar.gz |
handle_wrap: properly don't abort on unwrap
From commit 756ae2c all the WRAP/UNWRAP were moved to a single location
for ease of use. In a single location NO_ABORT should have been used but
wasn't. This caused HandleWrap::Close to abort. Below is the applicable
code change as demonstration there was no abort specified when
unwrapping the object.
void HandleWrap::Close(const FunctionCallbackInfo<Value>& args) {
HandleScope scope(node_isolate);
- HandleWrap *wrap = static_cast<HandleWrap*>(
- args.This()->GetAlignedPointerFromInternalField(0));
+ HandleWrap* wrap;
+ UNWRAP(args.This(), HandleWrap, wrap);
Also included a test that will reproduce the abort.
Diffstat (limited to 'deps/npm/man/man3')
0 files changed, 0 insertions, 0 deletions