Skip to content

Instantly share code, notes, and snippets.

@Sannis
Created January 19, 2011 17:58
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 Sannis/786556 to your computer and use it in GitHub Desktop.
Save Sannis/786556 to your computer and use it in GitHub Desktop.
efimovov@efimovov-pc:~/tmp> cat ./this_func_anon.js
setTimeout(function () {
throw new Error();
}, 10);
efimovov@efimovov-pc:~/tmp> cat ./this_func_named.js
setTimeout(function blaBla() {
throw new Error();
}, 10);
efimovov@efimovov-pc:~/tmp> node this_func_anon.js
/home/efimovov/tmp/this_func_anon.js:2
throw new Error();
^
Error
at Object._onTimeout (/home/efimovov/tmp/this_func_anon.js:2:9)
at Timer.callback (timers.js:95:39)
efimovov@efimovov-pc:~/tmp> node this_func_named.js
/home/efimovov/tmp/this_func_named.js:2
throw new Error();
^
Error
at Object.blaBla [as _onTimeout] (/home/efimovov/tmp/this_func_named.js:2:9)
at Timer.callback (timers.js:95:39)
efimovov@efimovov-pc:~/tmp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment