preset-env - add Symbol.asyncIterator to shippedProposals builtIns (#7548)
* preset-env - add Symbol.asyncIterator to shippedProposals builtins * fix typo
This commit is contained in:
parent
c14a6a7735
commit
29807837bb
@ -412,6 +412,7 @@ The following are currently supported:
|
|||||||
**Builtins**
|
**Builtins**
|
||||||
|
|
||||||
- [Promise.prototype.finally](https://github.com/tc39/proposal-promise-finally)
|
- [Promise.prototype.finally](https://github.com/tc39/proposal-promise-finally)
|
||||||
|
- [Symbol.asyncIterator](https://github.com/tc39/proposal-async-iteration)
|
||||||
|
|
||||||
**Features**
|
**Features**
|
||||||
|
|
||||||
|
|||||||
@ -1151,5 +1151,11 @@
|
|||||||
"firefox": "58",
|
"firefox": "58",
|
||||||
"safari": "11.1",
|
"safari": "11.1",
|
||||||
"opera": "50"
|
"opera": "50"
|
||||||
|
},
|
||||||
|
"es7.symbol.async-iterator": {
|
||||||
|
"chrome": "63",
|
||||||
|
"firefox": "57",
|
||||||
|
"safari": "tp",
|
||||||
|
"opera": "50"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
// shipped by browsers, and are enabled by the `shippedProposals` option.
|
// shipped by browsers, and are enabled by the `shippedProposals` option.
|
||||||
|
|
||||||
const builtIns = {
|
const builtIns = {
|
||||||
"es7.promise.finally": "Promise.prototype.finally"
|
"es7.promise.finally": "Promise.prototype.finally",
|
||||||
|
"es7.symbol.async-iterator": "Asynchronous Iterators",
|
||||||
};
|
};
|
||||||
|
|
||||||
const features = {
|
const features = {
|
||||||
|
|||||||
@ -16,7 +16,7 @@ export const definitions = {
|
|||||||
WeakMap: "es6.weak-map",
|
WeakMap: "es6.weak-map",
|
||||||
WeakSet: "es6.weak-set",
|
WeakSet: "es6.weak-set",
|
||||||
Promise: ["es6.object.to-string", "es6.promise"],
|
Promise: ["es6.object.to-string", "es6.promise"],
|
||||||
Symbol: "es6.symbol",
|
Symbol: ["es6.symbol", "es7.symbol.async-iterator"],
|
||||||
},
|
},
|
||||||
|
|
||||||
instanceMethods: {
|
instanceMethods: {
|
||||||
|
|||||||
@ -19,6 +19,7 @@ Using polyfills with `entry` option:
|
|||||||
[src/in.js] Replaced `@babel/polyfill` with the following polyfills:
|
[src/in.js] Replaced `@babel/polyfill` with the following polyfills:
|
||||||
es6.array.sort { "chrome":"60" }
|
es6.array.sort { "chrome":"60" }
|
||||||
es7.promise.finally { "chrome":"60" }
|
es7.promise.finally { "chrome":"60" }
|
||||||
|
es7.symbol.async-iterator { "chrome":"60" }
|
||||||
web.timers { "chrome":"60" }
|
web.timers { "chrome":"60" }
|
||||||
web.immediate { "chrome":"60" }
|
web.immediate { "chrome":"60" }
|
||||||
web.dom.iterable { "chrome":"60" }
|
web.dom.iterable { "chrome":"60" }
|
||||||
|
|||||||
@ -150,6 +150,7 @@ Using polyfills with `entry` option:
|
|||||||
es7.string.pad-start {}
|
es7.string.pad-start {}
|
||||||
es7.string.pad-end {}
|
es7.string.pad-end {}
|
||||||
es7.promise.finally {}
|
es7.promise.finally {}
|
||||||
|
es7.symbol.async-iterator {}
|
||||||
web.timers {}
|
web.timers {}
|
||||||
web.immediate {}
|
web.immediate {}
|
||||||
web.dom.iterable {}
|
web.dom.iterable {}
|
||||||
|
|||||||
@ -8,6 +8,8 @@ require("core-js/modules/es6.array.index-of");
|
|||||||
|
|
||||||
require("regenerator-runtime/runtime");
|
require("regenerator-runtime/runtime");
|
||||||
|
|
||||||
|
require("core-js/modules/es7.symbol.async-iterator");
|
||||||
|
|
||||||
require("core-js/modules/es6.symbol");
|
require("core-js/modules/es6.symbol");
|
||||||
|
|
||||||
require("core-js/modules/es6.promise");
|
require("core-js/modules/es6.promise");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user