Merge pull request #450 from cscott/promise-improvements

Remove unnecessary ES2015 syntax; add feature flags where appropriate.
This commit is contained in:
Rick Waldron 2015-12-04 14:50:52 -05:00
commit 59dfae6311
11 changed files with 11 additions and 5 deletions

View File

@ -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 = {};

View File

@ -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 = {};

View File

@ -13,7 +13,7 @@ info: >
var executorFunction;
function NotPromise(executor) {
executorFunction = executor;
executor(() => {}, () => {});
executor(function(){}, function(){});
}
Promise.resolve.call(NotPromise);

View File

@ -17,7 +17,7 @@ includes: [propertyHelper.js]
var executorFunction;
function NotPromise(executor) {
executorFunction = executor;
executor(() => {}, () => {});
executor(function(){}, function(){});
}
Promise.resolve.call(NotPromise);

View File

@ -16,7 +16,7 @@ info: >
var executorFunction;
function NotPromise(executor) {
executorFunction = executor;
executor(() => {}, () => {});
executor(function(){}, function(){});
}
Promise.resolve.call(NotPromise);

View File

@ -14,7 +14,7 @@ info: >
var executorFunction;
function NotPromise(executor) {
executorFunction = executor;
executor(() => {}, () => {});
executor(function(){}, function(){});
}
Promise.resolve.call(NotPromise);

View File

@ -15,7 +15,7 @@ info: >
var executorFunction;
function NotPromise(executor) {
executorFunction = executor;
executor(() => {}, () => {});
executor(function(){}, function(){});
}
Promise.resolve.call(NotPromise);

View File

@ -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 = {};

View File

@ -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 = {};

View File

@ -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 = {};

View File

@ -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");