Skip to content

Commit

Permalink
Fix es6.string.iterator mapping in babel-preset-env (#8693)
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism committed Sep 14, 2018
1 parent fc1a52c commit 880fc1f
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 19 deletions.
2 changes: 1 addition & 1 deletion packages/babel-preset-env/data/built-in-features.js
Expand Up @@ -277,7 +277,7 @@ const es = {
"es6.string.from-code-point": "String static methods / String.fromCodePoint",
"es6.string.includes": "String.prototype methods / String.prototype.includes",
"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",
// "String.prototype methods / String.prototype.normalize" not implemented
"es7.string.pad-start": "String padding / String.prototype.padStart",
Expand Down
16 changes: 7 additions & 9 deletions packages/babel-preset-env/data/built-ins.json
Expand Up @@ -1183,16 +1183,14 @@
"electron": "1.1"
},
"es6.string.iterator": {
"chrome": "5",
"opera": "10.10",
"chrome": "38",
"edge": "12",
"firefox": "2",
"safari": "3.1",
"node": "0.10",
"ie": "8",
"android": "4.0",
"ios": "6",
"electron": "1.1"
"firefox": "36",
"safari": "9",
"node": "0.12",
"ios": "9",
"opera": "25",
"electron": "0.2"
},
"es6.string.link": {
"chrome": "5",
Expand Down
Expand Up @@ -129,6 +129,7 @@ Using polyfills with `entry` option:
es6.string.ends-with { "android":"4" }
es6.string.from-code-point { "android":"4" }
es6.string.includes { "android":"4" }
es6.string.iterator { "android":"4" }
es7.string.pad-start { "android":"4" }
es7.string.pad-end { "android":"4" }
es6.string.raw { "android":"4" }
Expand All @@ -149,4 +150,4 @@ Using polyfills with `entry` option:
web.timers { "android":"4" }
web.immediate { "android":"4" }
web.dom.iterable { "android":"4" }
Successfully compiled 1 file with Babel.
Successfully compiled 1 file with Babel.
Expand Up @@ -140,6 +140,7 @@ Using polyfills with `entry` option:
es6.string.from-code-point { "ie":"10" }
es6.string.includes { "ie":"10" }
es6.string.italics { "ie":"10" }
es6.string.iterator { "ie":"10" }
es6.string.link { "ie":"10" }
es7.string.pad-start { "chrome":"54", "ie":"10", "node":"6" }
es7.string.pad-end { "chrome":"54", "ie":"10", "node":"6" }
Expand All @@ -165,4 +166,4 @@ Using polyfills with `entry` option:
web.timers { "chrome":"54", "ie":"10", "node":"6" }
web.immediate { "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.
Expand Up @@ -100,7 +100,6 @@ Using polyfills with `entry` option:
es6.string.fontcolor { "electron":"0.36" }
es6.string.fontsize { "electron":"0.36" }
es6.string.italics { "electron":"0.36" }
es6.string.iterator { "electron":"0.36" }
es6.string.link { "electron":"0.36" }
es7.string.pad-start { "electron":"0.36" }
es7.string.pad-end { "electron":"0.36" }
Expand All @@ -125,4 +124,4 @@ Using polyfills with `entry` option:
web.timers { "electron":"0.36" }
web.immediate { "electron":"0.36" }
web.dom.iterable { "electron":"0.36" }
Successfully compiled 1 file with Babel.
Successfully compiled 1 file with Babel.
Expand Up @@ -144,6 +144,7 @@ Using polyfills with `entry` option:
es6.string.from-code-point { "ie":"10", "safari":"7" }
es6.string.includes { "ie":"10", "safari":"7" }
es6.string.italics { "ie":"10" }
es6.string.iterator { "ie":"10", "safari":"7" }
es6.string.link { "ie":"10" }
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" }
Expand All @@ -169,4 +170,4 @@ Using polyfills with `entry` option:
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.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.
Expand Up @@ -43,10 +43,11 @@ Using polyfills with `usage` option:
[<CWD>/src/in.js] Added following polyfills:
es6.promise { "ie":"11" }
es6.map { "firefox":"50", "ie":"11" }
es6.string.iterator { "ie":"11" }
es6.array.iterator { "ie":"11" }
web.dom.iterable { "chrome":"52", "firefox":"50", "ie":"11" }

[<CWD>/src/in2.js] Added following polyfills:
regenerator-runtime { "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.
Expand Up @@ -167,7 +167,7 @@ Using polyfills with `entry` option:
es6.string.from-code-point { "ie":"10" }
es6.string.includes { "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" }
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" }
Expand Down Expand Up @@ -195,4 +195,4 @@ Using polyfills with `entry` option:
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.dom.iterable { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" }
Successfully compiled 1 file with Babel.
Successfully compiled 1 file with Babel.
Expand Up @@ -140,6 +140,7 @@ Using polyfills with `entry` option:
es6.string.from-code-point { "ie":"10" }
es6.string.includes { "ie":"10" }
es6.string.italics { "ie":"10" }
es6.string.iterator { "ie":"10" }
es6.string.link { "ie":"10" }
es7.string.pad-start { "chrome":"54", "ie":"10", "node":"6.10" }
es7.string.pad-end { "chrome":"54", "ie":"10", "node":"6.10" }
Expand All @@ -165,4 +166,4 @@ Using polyfills with `entry` option:
web.timers { "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" }
Successfully compiled 1 file with Babel.
Successfully compiled 1 file with Babel.
@@ -1,5 +1,6 @@
import "core-js/modules/web.dom.iterable";
import "core-js/modules/es6.array.iterator";
import "core-js/modules/es6.string.iterator";
import "core-js/modules/es6.promise";
var p = Promise.resolve(0);
Promise.all([p]).then(function (outcome) {
Expand Down
@@ -1,5 +1,6 @@
import "core-js/modules/web.dom.iterable";
import "core-js/modules/es6.array.iterator";
import "core-js/modules/es6.string.iterator";
import "core-js/modules/es6.promise";
var p = Promise.resolve(0);
Promise.race([p]).then(function (outcome) {
Expand Down
Expand Up @@ -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.includes";
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/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
Expand Down
Expand Up @@ -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.includes";
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/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
Expand Down

0 comments on commit 880fc1f

Please sign in to comment.