Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Aug 15, 2015
  1. @kkoopa

    Update to NAN 2.0

    kkoopa authored
Commits on Oct 14, 2014
  1. @metamatt

    Call callback directly to avoid unwanted preemption.

    metamatt authored
    Nan's NanCallback::Call goes through Node's MakeCallback, which is
    designed to be used only by event callbacks (i.e. functions called
    from the libuv event loop), not invoked synchronously from a call
    stack where JS code was already running. This is because when
    MakeCallback returns it assumes it's the end of the current "tick", so
    it calls not only the callback you told it to, but also all tick
    callbacks registered for the current tick.
    Since node-weak's TargetCallback is invoked from GC, which could be
    invoked from anywhere at any time, the code it calls into (the
    callback attached to each weakref object) needs to be designed and
    written carefully, essentially to the standards of signal or interrupt
    handlers, since they preempt any JS code that was already running when
    GC kicked in.
    This is fine as long as the weakref callbacks are written to this
    standard, but it also means TargetCallback needs to avoid accidentally
    calling other callbacks that weren't written to this standard.
    The fix is to call the callback directly, instead of via MakeCallback.
    Fixes #35.
Commits on May 25, 2014
  1. weakref: fix deprecation warning after nan upgrade

    The memory management of the `data` structure is now handled
    internally by nan.
Commits on May 10, 2014
  1. @duralog

    Update for nan v1 API changes

    duralog authored committed
    Squashed commit of the following:
    commit e1e4257
    Author: duralog <>
    Date:   Thu May 8 19:56:11 2014 +0200
        support 0.8.x and 0.10.x and wait for nan-1.1.0
    commit 944999e
    Author: flames of love <>
    Date:   Thu May 8 19:34:42 2014 +0200
        update for latest nan changes
    commit 3b06292
    Author: flames of love <>
    Date:   Tue May 6 17:05:03 2014 +0200
        remove GetPersistent .. not used
    commit f2303c1
    Author: flames of love <>
    Date:   Tue May 6 16:45:34 2014 +0200
        update for node v0.11.13
    Closes #27.
Commits on Apr 14, 2014
  1. weakref: s/NanDispose/NanDisposePersistent/

    NanDispose() is deprecated.
Commits on Nov 18, 2013
  1. @rvagg

    weakref: make proxy_container into a class; new/delete

    rvagg authored committed
    Closes #20
Commits on Nov 17, 2013
  1. big refactor: callbacks are now backed by an EventEmitter

    And the callback invoking logic has been moved to JS-land.
    NanCallback is also now in use.
  2. weakref: add comment

Commits on Nov 10, 2013
  1. make it compile on v0.11 and v0.10, and older...

    Segfaults on v0.11.x still though..
  2. wip: more nan refactoring progress

    Down to apparently 1 build error on v0.11.8
  3. wip: more nan progress

  4. wip refactor to nan #18

    I believe I need bindings for the "indexed" getter/setter/delete/etc. functions.
    /cc @rvagg
Commits on Mar 25, 2013
  1. version sniff for api changes

    Fixes build on node <= v0.10
  2. @bnoordhuis

    fix up after v8 api change

    bnoordhuis authored committed
    This is a cherry pick of joyent/node@dc29d64.
Commits on Mar 15, 2012
  1. Revert "Fix includes for gyp."

    This reverts commit f1ae787.
Commits on Jan 27, 2012
  1. Fix includes for gyp.

Commits on Dec 18, 2011
Commits on Nov 26, 2011
  1. Dumb assert.

Commits on Oct 18, 2011
  1. Set the ref's internal pointer to NULL when the 'cont' is free()'d.

    Fixes seg fault in test-weakref.js test case.
Commits on Oct 9, 2011
  1. Properly free the underlying struct.

    The weak callback on the proxy object was unnecessary, and added extra
    complexity. Now there's no more memory leak! Thanks @indutny!
Commits on Oct 2, 2011
Commits on Oct 1, 2011
Commits on Sep 30, 2011
Something went wrong with that request. Please try again.