Skip to content

Instantly share code, notes, and snippets.

@arumons
Created February 25, 2011 14:35
Show Gist options
  • Save arumons/843865 to your computer and use it in GitHub Desktop.
Save arumons/843865 to your computer and use it in GitHub Desktop.
コールバック関数中の例外例2
function foo(fn) {
process.nextTick(fn);
}
try {
foo(function() {
throw "test";
});
} catch (e) {
//ここに到達しません・・・
console.log("ok?");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment