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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node-v0.x-archive
base: 6df4741f8408
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: f218d94af4a7
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Sep 5, 2013

  1. 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.
    trevnorris committed Sep 5, 2013
    Copy the full SHA
    f218d94 View commit details
    Browse the repository at this point in the history