Skip to content
Snippets Groups Projects
Commit 59dfae63 authored by Rick Waldron's avatar Rick Waldron
Browse files

Merge pull request #450 from cscott/promise-improvements

Remove unnecessary ES2015 syntax; add feature flags where appropriate.
parents 47d3eb1b bae004d5
No related branches found
No related tags found
No related merge requests found
Showing with 11 additions and 5 deletions
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment