Skip to content

Instantly share code, notes, and snippets.

@trevnorris
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trevnorris/bb0078f2acb77ad67825 to your computer and use it in GitHub Desktop.
Save trevnorris/bb0078f2acb77ad67825 to your computer and use it in GitHub Desktop.
var async_wrap = process.binding('async_wrap');
var b = {};
function initHook() {
this._asyncQueue = {};
}
function preHook() {
throw new Error('preHook');
}
function postHook() {
}
async_wrap.setupHooks(b, initHook, preHook, postHook);
b[0] = 1;
require('fs').stat('/not/exists', function() { });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment