Created
September 28, 2015 16:59
-
-
Save jimmybot/e5425ef974c5ff7b7cfc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
function* aGenerator() { | |
throw new Error("rarg") | |
} | |
function runner() { | |
var gen = aGenerator() | |
gen.next() | |
} | |
runner() | |
/* | |
node generatorErrorDemo.js | |
/private/tmp/generatorErrorDemo.js:9 | |
gen.next() | |
^ | |
Error: rarg | |
at aGenerator (/private/tmp/generatorErrorDemo.js:4:11) | |
at next (native) | |
at runner (/private/tmp/generatorErrorDemo.js:9:9) | |
at Object.<anonymous> (/private/tmp/generatorErrorDemo.js:12:1) | |
at Module._compile (module.js:434:26) | |
at Object.Module._extensions..js (module.js:452:10) | |
at Module.load (module.js:355:32) | |
at Function.Module._load (module.js:310:12) | |
at Function.Module.runMain (module.js:475:10) | |
at startup (node.js:117:18) | |
*/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment