Skip to content

Instantly share code, notes, and snippets.

@briancavalier briancavalier/1-test.js
Last active Aug 29, 2015

What would you like to do?
Thinking about promise error heuristics
var Promise = require('../../when').Promise;
Promise.resolve().then(function outer() {
return Promise.resolve().then(function inner() {
return Promise.resolve().then(function evenMoreInner() {
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
You can’t perform that action at this time.