Fix es6.string.iterator mapping in babel-preset-env (#8693)

This commit is contained in:
Brian Ng 2018-09-14 10:20:00 -05:00 committed by GitHub
parent fc1a52cb75
commit 880fc1f54e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 25 additions and 19 deletions

View File

@ -277,7 +277,7 @@ const es = {
"es6.string.from-code-point": "String static methods / String.fromCodePoint", "es6.string.from-code-point": "String static methods / String.fromCodePoint",
"es6.string.includes": "String.prototype methods / String.prototype.includes", "es6.string.includes": "String.prototype methods / String.prototype.includes",
"es6.string.italics": "String.prototype HTML methods", "es6.string.italics": "String.prototype HTML methods",
"es6.string.iterator": "String properties and methods / Property access on strings", "es6.string.iterator": "String.prototype methods / String.prototype[Symbol.iterator]",
"es6.string.link": "String.prototype HTML methods", "es6.string.link": "String.prototype HTML methods",
// "String.prototype methods / String.prototype.normalize" not implemented // "String.prototype methods / String.prototype.normalize" not implemented
"es7.string.pad-start": "String padding / String.prototype.padStart", "es7.string.pad-start": "String padding / String.prototype.padStart",

View File

@ -1183,16 +1183,14 @@
"electron": "1.1" "electron": "1.1"
}, },
"es6.string.iterator": { "es6.string.iterator": {
"chrome": "5", "chrome": "38",
"opera": "10.10",
"edge": "12", "edge": "12",
"firefox": "2", "firefox": "36",
"safari": "3.1", "safari": "9",
"node": "0.10", "node": "0.12",
"ie": "8", "ios": "9",
"android": "4.0", "opera": "25",
"ios": "6", "electron": "0.2"
"electron": "1.1"
}, },
"es6.string.link": { "es6.string.link": {
"chrome": "5", "chrome": "5",

View File

@ -129,6 +129,7 @@ Using polyfills with `entry` option:
es6.string.ends-with { "android":"4" } es6.string.ends-with { "android":"4" }
es6.string.from-code-point { "android":"4" } es6.string.from-code-point { "android":"4" }
es6.string.includes { "android":"4" } es6.string.includes { "android":"4" }
es6.string.iterator { "android":"4" }
es7.string.pad-start { "android":"4" } es7.string.pad-start { "android":"4" }
es7.string.pad-end { "android":"4" } es7.string.pad-end { "android":"4" }
es6.string.raw { "android":"4" } es6.string.raw { "android":"4" }
@ -149,4 +150,4 @@ Using polyfills with `entry` option:
web.timers { "android":"4" } web.timers { "android":"4" }
web.immediate { "android":"4" } web.immediate { "android":"4" }
web.dom.iterable { "android":"4" } web.dom.iterable { "android":"4" }
Successfully compiled 1 file with Babel. Successfully compiled 1 file with Babel.

View File

@ -140,6 +140,7 @@ Using polyfills with `entry` option:
es6.string.from-code-point { "ie":"10" } es6.string.from-code-point { "ie":"10" }
es6.string.includes { "ie":"10" } es6.string.includes { "ie":"10" }
es6.string.italics { "ie":"10" } es6.string.italics { "ie":"10" }
es6.string.iterator { "ie":"10" }
es6.string.link { "ie":"10" } es6.string.link { "ie":"10" }
es7.string.pad-start { "chrome":"54", "ie":"10", "node":"6" } es7.string.pad-start { "chrome":"54", "ie":"10", "node":"6" }
es7.string.pad-end { "chrome":"54", "ie":"10", "node":"6" } es7.string.pad-end { "chrome":"54", "ie":"10", "node":"6" }
@ -165,4 +166,4 @@ Using polyfills with `entry` option:
web.timers { "chrome":"54", "ie":"10", "node":"6" } web.timers { "chrome":"54", "ie":"10", "node":"6" }
web.immediate { "chrome":"54", "ie":"10", "node":"6" } web.immediate { "chrome":"54", "ie":"10", "node":"6" }
web.dom.iterable { "chrome":"54", "ie":"10", "node":"6" } web.dom.iterable { "chrome":"54", "ie":"10", "node":"6" }
Successfully compiled 1 file with Babel. Successfully compiled 1 file with Babel.

View File

@ -100,7 +100,6 @@ Using polyfills with `entry` option:
es6.string.fontcolor { "electron":"0.36" } es6.string.fontcolor { "electron":"0.36" }
es6.string.fontsize { "electron":"0.36" } es6.string.fontsize { "electron":"0.36" }
es6.string.italics { "electron":"0.36" } es6.string.italics { "electron":"0.36" }
es6.string.iterator { "electron":"0.36" }
es6.string.link { "electron":"0.36" } es6.string.link { "electron":"0.36" }
es7.string.pad-start { "electron":"0.36" } es7.string.pad-start { "electron":"0.36" }
es7.string.pad-end { "electron":"0.36" } es7.string.pad-end { "electron":"0.36" }
@ -125,4 +124,4 @@ Using polyfills with `entry` option:
web.timers { "electron":"0.36" } web.timers { "electron":"0.36" }
web.immediate { "electron":"0.36" } web.immediate { "electron":"0.36" }
web.dom.iterable { "electron":"0.36" } web.dom.iterable { "electron":"0.36" }
Successfully compiled 1 file with Babel. Successfully compiled 1 file with Babel.

View File

@ -144,6 +144,7 @@ Using polyfills with `entry` option:
es6.string.from-code-point { "ie":"10", "safari":"7" } es6.string.from-code-point { "ie":"10", "safari":"7" }
es6.string.includes { "ie":"10", "safari":"7" } es6.string.includes { "ie":"10", "safari":"7" }
es6.string.italics { "ie":"10" } es6.string.italics { "ie":"10" }
es6.string.iterator { "ie":"10", "safari":"7" }
es6.string.link { "ie":"10" } es6.string.link { "ie":"10" }
es7.string.pad-start { "chrome":"54", "edge":"13", "ie":"10", "ios":"9", "safari":"7" } es7.string.pad-start { "chrome":"54", "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
es7.string.pad-end { "chrome":"54", "edge":"13", "ie":"10", "ios":"9", "safari":"7" } es7.string.pad-end { "chrome":"54", "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
@ -169,4 +170,4 @@ Using polyfills with `entry` option:
web.timers { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } web.timers { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
web.immediate { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } web.immediate { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
web.dom.iterable { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } web.dom.iterable { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
Successfully compiled 1 file with Babel. Successfully compiled 1 file with Babel.

View File

@ -43,10 +43,11 @@ Using polyfills with `usage` option:
[<CWD>/src/in.js] Added following polyfills: [<CWD>/src/in.js] Added following polyfills:
es6.promise { "ie":"11" } es6.promise { "ie":"11" }
es6.map { "firefox":"50", "ie":"11" } es6.map { "firefox":"50", "ie":"11" }
es6.string.iterator { "ie":"11" }
es6.array.iterator { "ie":"11" } es6.array.iterator { "ie":"11" }
web.dom.iterable { "chrome":"52", "firefox":"50", "ie":"11" } web.dom.iterable { "chrome":"52", "firefox":"50", "ie":"11" }
[<CWD>/src/in2.js] Added following polyfills: [<CWD>/src/in2.js] Added following polyfills:
regenerator-runtime { "chrome":"52", "firefox":"50", "ie":"11" } regenerator-runtime { "chrome":"52", "firefox":"50", "ie":"11" }
web.dom.iterable { "chrome":"52", "firefox":"50", "ie":"11" } web.dom.iterable { "chrome":"52", "firefox":"50", "ie":"11" }
Successfully compiled 2 files with Babel. Successfully compiled 2 files with Babel.

View File

@ -167,7 +167,7 @@ Using polyfills with `entry` option:
es6.string.from-code-point { "ie":"10" } es6.string.from-code-point { "ie":"10" }
es6.string.includes { "ie":"10" } es6.string.includes { "ie":"10" }
es6.string.italics { "electron":"0.36", "ie":"10" } es6.string.italics { "electron":"0.36", "ie":"10" }
es6.string.iterator { "electron":"0.36" } es6.string.iterator { "ie":"10" }
es6.string.link { "electron":"0.36", "ie":"10" } es6.string.link { "electron":"0.36", "ie":"10" }
es7.string.pad-start { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" } es7.string.pad-start { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
es7.string.pad-end { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" } es7.string.pad-end { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
@ -195,4 +195,4 @@ Using polyfills with `entry` option:
web.timers { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" } web.timers { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
web.immediate { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" } web.immediate { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
web.dom.iterable { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" } web.dom.iterable { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
Successfully compiled 1 file with Babel. Successfully compiled 1 file with Babel.

View File

@ -140,6 +140,7 @@ Using polyfills with `entry` option:
es6.string.from-code-point { "ie":"10" } es6.string.from-code-point { "ie":"10" }
es6.string.includes { "ie":"10" } es6.string.includes { "ie":"10" }
es6.string.italics { "ie":"10" } es6.string.italics { "ie":"10" }
es6.string.iterator { "ie":"10" }
es6.string.link { "ie":"10" } es6.string.link { "ie":"10" }
es7.string.pad-start { "chrome":"54", "ie":"10", "node":"6.10" } es7.string.pad-start { "chrome":"54", "ie":"10", "node":"6.10" }
es7.string.pad-end { "chrome":"54", "ie":"10", "node":"6.10" } es7.string.pad-end { "chrome":"54", "ie":"10", "node":"6.10" }
@ -165,4 +166,4 @@ Using polyfills with `entry` option:
web.timers { "chrome":"54", "ie":"10", "node":"6.10" } web.timers { "chrome":"54", "ie":"10", "node":"6.10" }
web.immediate { "chrome":"54", "ie":"10", "node":"6.10" } web.immediate { "chrome":"54", "ie":"10", "node":"6.10" }
web.dom.iterable { "chrome":"54", "ie":"10", "node":"6.10" } web.dom.iterable { "chrome":"54", "ie":"10", "node":"6.10" }
Successfully compiled 1 file with Babel. Successfully compiled 1 file with Babel.

View File

@ -1,5 +1,6 @@
import "core-js/modules/web.dom.iterable"; import "core-js/modules/web.dom.iterable";
import "core-js/modules/es6.array.iterator"; import "core-js/modules/es6.array.iterator";
import "core-js/modules/es6.string.iterator";
import "core-js/modules/es6.promise"; import "core-js/modules/es6.promise";
var p = Promise.resolve(0); var p = Promise.resolve(0);
Promise.all([p]).then(function (outcome) { Promise.all([p]).then(function (outcome) {

View File

@ -1,5 +1,6 @@
import "core-js/modules/web.dom.iterable"; import "core-js/modules/web.dom.iterable";
import "core-js/modules/es6.array.iterator"; import "core-js/modules/es6.array.iterator";
import "core-js/modules/es6.string.iterator";
import "core-js/modules/es6.promise"; import "core-js/modules/es6.promise";
var p = Promise.resolve(0); var p = Promise.resolve(0);
Promise.race([p]).then(function (outcome) { Promise.race([p]).then(function (outcome) {

View File

@ -94,6 +94,7 @@ import "core-js/modules/es6.string.fontsize";
import "core-js/modules/es6.string.from-code-point"; import "core-js/modules/es6.string.from-code-point";
import "core-js/modules/es6.string.includes"; import "core-js/modules/es6.string.includes";
import "core-js/modules/es6.string.italics"; import "core-js/modules/es6.string.italics";
import "core-js/modules/es6.string.iterator";
import "core-js/modules/es6.string.link"; import "core-js/modules/es6.string.link";
import "core-js/modules/es7.string.pad-start"; import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end"; import "core-js/modules/es7.string.pad-end";

View File

@ -96,6 +96,7 @@ import "core-js/modules/es6.string.fontsize";
import "core-js/modules/es6.string.from-code-point"; import "core-js/modules/es6.string.from-code-point";
import "core-js/modules/es6.string.includes"; import "core-js/modules/es6.string.includes";
import "core-js/modules/es6.string.italics"; import "core-js/modules/es6.string.italics";
import "core-js/modules/es6.string.iterator";
import "core-js/modules/es6.string.link"; import "core-js/modules/es6.string.link";
import "core-js/modules/es7.string.pad-start"; import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end"; import "core-js/modules/es7.string.pad-end";