2 // Hack around Promise.jsm being stuck on my global
3 Assert.equal(false, PromiseDebugging === undefined);
5 var p = new Promise(function (resolve, reject) {
8 var state = PromiseDebugging.getState(p);
9 Assert.equal(state.state, "pending");
14 var state2 = PromiseDebugging.getState(p);
15 Assert.equal(state2.state, "fulfilled");
16 Assert.equal(state2.value, 5);