Last active
August 29, 2015 13:57
-
-
Save briancavalier/9770968 to your computer and use it in GitHub Desktop.
Thinking about promise error heuristics
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
require('../monitor/console'); | |
var Promise = require('../../when').Promise; | |
Promise.resolve().then(function outer() { | |
return Promise.resolve().then(function inner() { | |
return Promise.resolve().then(function evenMoreInner() { | |
oops(); | |
}); | |
}); | |
}); |
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
ReferenceError: oops is not defined | |
(also: did you forget to return something?) | |
at evenMoreInner (/Users/brian/Projects/cujojs/when/experiments/trace.js:7:4) | |
from call: | |
at inner (/Users/brian/Projects/cujojs/when/experiments/trace.js:6:28) | |
from call: | |
at outer (/Users/brian/Projects/cujojs/when/experiments/trace.js:5:17) | |
from call: | |
at Object.<anonymous> (/Users/brian/Projects/cujojs/when/experiments/trace.js:4:9) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment