mirror of https://github.com/tc39/test262.git
Merge pull request #450 from cscott/promise-improvements
Remove unnecessary ES2015 syntax; add feature flags where appropriate.
This commit is contained in:
commit
59dfae6311
|
@ -8,6 +8,7 @@ info: >
|
|||
es6id: S25.4.4.1_A3.1_T3
|
||||
author: Sam Mikes
|
||||
description: Promise.all((throw on GetIterator)) returns Promise rejected with TypeError
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
var iterThrows = {};
|
||||
|
|
|
@ -8,6 +8,7 @@ info: >
|
|||
es6id: S25.4.4.1_A5.1_T1
|
||||
author: Sam Mikes
|
||||
description: iterator.next throws, causing Promise.all to reject
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
var iterThrows = {};
|
||||
|
|
|
@ -13,7 +13,7 @@ info: >
|
|||
var executorFunction;
|
||||
function NotPromise(executor) {
|
||||
executorFunction = executor;
|
||||
executor(() => {}, () => {});
|
||||
executor(function(){}, function(){});
|
||||
}
|
||||
Promise.resolve.call(NotPromise);
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ includes: [propertyHelper.js]
|
|||
var executorFunction;
|
||||
function NotPromise(executor) {
|
||||
executorFunction = executor;
|
||||
executor(() => {}, () => {});
|
||||
executor(function(){}, function(){});
|
||||
}
|
||||
Promise.resolve.call(NotPromise);
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ info: >
|
|||
var executorFunction;
|
||||
function NotPromise(executor) {
|
||||
executorFunction = executor;
|
||||
executor(() => {}, () => {});
|
||||
executor(function(){}, function(){});
|
||||
}
|
||||
Promise.resolve.call(NotPromise);
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ info: >
|
|||
var executorFunction;
|
||||
function NotPromise(executor) {
|
||||
executorFunction = executor;
|
||||
executor(() => {}, () => {});
|
||||
executor(function(){}, function(){});
|
||||
}
|
||||
Promise.resolve.call(NotPromise);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ info: >
|
|||
var executorFunction;
|
||||
function NotPromise(executor) {
|
||||
executorFunction = executor;
|
||||
executor(() => {}, () => {});
|
||||
executor(function(){}, function(){});
|
||||
}
|
||||
Promise.resolve.call(NotPromise);
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ info: >
|
|||
es6id: S25.4.4.3_A2.2_T3
|
||||
author: Sam Mikes
|
||||
description: Promise.race rejects if GetIterator throws
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
var iterThrows = {};
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
es6id: S25.4.4.3_A4.1_T1
|
||||
author: Sam Mikes
|
||||
description: Promise.race rejects if IteratorStep throws
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
var iterThrows = {};
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
es6id: S25.4.4.3_A4.1_T2
|
||||
author: Sam Mikes
|
||||
description: Promise.race rejects if IteratorStep throws
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
var iterThrows = {};
|
||||
|
|
|
@ -9,6 +9,7 @@ author: Sam Mikes
|
|||
description: Promise[Symbol.species] exists per spec
|
||||
includes:
|
||||
- propertyHelper.js
|
||||
features: [Symbol.species]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Promise[Symbol.species], Promise, "Promise[Symbol.species] is Promise");
|
||||
|
|
Loading…
Reference in New Issue