diff --git a/test/staging/sm/Promise/bug-1287334.js b/test/staging/sm/Promise/bug-1287334.js index 5fb3376314..53990752ad 100644 --- a/test/staging/sm/Promise/bug-1287334.js +++ b/test/staging/sm/Promise/bug-1287334.js @@ -2,15 +2,13 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending ---*/ + var promise = Promise.resolve(1); var FakeCtor = function(exec){ exec(function(){}, function(){}); }; Object.defineProperty(Promise, Symbol.species, {value: FakeCtor}); // This just shouldn't crash. It does without bug 1287334 fixed. promise.then(function(){}); - diff --git a/test/staging/sm/Promise/bug-1288382.js b/test/staging/sm/Promise/bug-1288382.js index 0996b2f555..0979a7fb8f 100644 --- a/test/staging/sm/Promise/bug-1288382.js +++ b/test/staging/sm/Promise/bug-1288382.js @@ -2,16 +2,14 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending ---*/ + // This just shouldn't trigger a failed assert. // It does without bug 1288382 fixed. Promise.all.call(class { constructor(exec){ exec(()=>{}, ()=>{}); } static resolve() { return {then(){}}; } }, [null]); - diff --git a/test/staging/sm/Promise/bug-1289040.js b/test/staging/sm/Promise/bug-1289040.js index a5829041cd..6c40bee96c 100644 --- a/test/staging/sm/Promise/bug-1289040.js +++ b/test/staging/sm/Promise/bug-1289040.js @@ -2,16 +2,14 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending ---*/ + var global = $262.createRealm().global; Promise.prototype.then = global.Promise.prototype.then; -p1 = new Promise(function f(r) { +var p1 = new Promise(function f(r) { r(1); }); -p2 = p1.then(function g(){}); - +var p2 = p1.then(function g(){}); diff --git a/test/staging/sm/Promise/methods-non-enumerable.js b/test/staging/sm/Promise/methods-non-enumerable.js index 7b247554d4..06fdf6c183 100644 --- a/test/staging/sm/Promise/methods-non-enumerable.js +++ b/test/staging/sm/Promise/methods-non-enumerable.js @@ -2,12 +2,10 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending ---*/ + assert.sameValue(Object.keys(Promise).length, 0); assert.sameValue(Object.keys(Promise.prototype).length, 0); - diff --git a/test/staging/sm/Promise/promise-species.js b/test/staging/sm/Promise/promise-species.js index f3ad303272..6880d9b270 100644 --- a/test/staging/sm/Promise/promise-species.js +++ b/test/staging/sm/Promise/promise-species.js @@ -2,16 +2,14 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending ---*/ + assert.sameValue(Promise[Symbol.species], Promise); let prop = Object.getOwnPropertyDescriptor(Promise, Symbol.species); assert.sameValue('get' in prop, true); assert.sameValue(typeof prop.get, 'function'); assert.sameValue('set' in prop, true); assert.sameValue(prop.set, undefined); -