preset-env - add Symbol.asyncIterator to shippedProposals builtIns (#7548)

* preset-env - add Symbol.asyncIterator to shippedProposals builtins

* fix typo
This commit is contained in:
Yael Hermon 2018-03-11 23:29:22 +02:00 committed by Brian Ng
parent c14a6a7735
commit 29807837bb
7 changed files with 14 additions and 2 deletions

View File

@ -412,6 +412,7 @@ The following are currently supported:
**Builtins**
- [Promise.prototype.finally](https://github.com/tc39/proposal-promise-finally)
- [Symbol.asyncIterator](https://github.com/tc39/proposal-async-iteration)
**Features**

View File

@ -1151,5 +1151,11 @@
"firefox": "58",
"safari": "11.1",
"opera": "50"
},
"es7.symbol.async-iterator": {
"chrome": "63",
"firefox": "57",
"safari": "tp",
"opera": "50"
}
}

View File

@ -2,7 +2,8 @@
// shipped by browsers, and are enabled by the `shippedProposals` option.
const builtIns = {
"es7.promise.finally": "Promise.prototype.finally"
"es7.promise.finally": "Promise.prototype.finally",
"es7.symbol.async-iterator": "Asynchronous Iterators",
};
const features = {

View File

@ -16,7 +16,7 @@ export const definitions = {
WeakMap: "es6.weak-map",
WeakSet: "es6.weak-set",
Promise: ["es6.object.to-string", "es6.promise"],
Symbol: "es6.symbol",
Symbol: ["es6.symbol", "es7.symbol.async-iterator"],
},
instanceMethods: {

View File

@ -19,6 +19,7 @@ Using polyfills with `entry` option:
[src/in.js] Replaced `@babel/polyfill` with the following polyfills:
es6.array.sort { "chrome":"60" }
es7.promise.finally { "chrome":"60" }
es7.symbol.async-iterator { "chrome":"60" }
web.timers { "chrome":"60" }
web.immediate { "chrome":"60" }
web.dom.iterable { "chrome":"60" }

View File

@ -150,6 +150,7 @@ Using polyfills with `entry` option:
es7.string.pad-start {}
es7.string.pad-end {}
es7.promise.finally {}
es7.symbol.async-iterator {}
web.timers {}
web.immediate {}
web.dom.iterable {}

View File

@ -8,6 +8,8 @@ require("core-js/modules/es6.array.index-of");
require("regenerator-runtime/runtime");
require("core-js/modules/es7.symbol.async-iterator");
require("core-js/modules/es6.symbol");
require("core-js/modules/es6.promise");