-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix/transform-safari-block-shadowing
- Loading branch information
1 parent
d86aece
commit af6fa3b
Showing
30 changed files
with
361 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/babel-preset-env/test/fixtures/bugfixes/_esmodules-no-bugfixes/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Edge | ||
({ x = 2 }) => {}; | ||
|
||
// Safari | ||
{ | ||
let x; | ||
{ let x; } | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/babel-preset-env/test/fixtures/bugfixes/_esmodules-no-bugfixes/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"validateLogs": true, | ||
"presets": [ | ||
["env", { | ||
"debug": true, | ||
"bugfixes": false, | ||
"targets": { | ||
"esmodules": true | ||
} | ||
}] | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
packages/babel-preset-env/test/fixtures/bugfixes/_esmodules-no-bugfixes/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Edge | ||
(_ref) => { | ||
var { | ||
x = 2 | ||
} = _ref; | ||
}; // Safari | ||
|
||
|
||
{ | ||
var x; | ||
{ | ||
var _x; | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
packages/babel-preset-env/test/fixtures/bugfixes/_esmodules-no-bugfixes/stdout.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
@babel/preset-env: `DEBUG` option | ||
|
||
Using targets: | ||
{ | ||
"android": "61", | ||
"chrome": "61", | ||
"edge": "16", | ||
"firefox": "60", | ||
"ios": "10.3", | ||
"opera": "48", | ||
"safari": "10.1", | ||
"samsung": "8.2" | ||
} | ||
|
||
Using modules transform: auto | ||
|
||
Using plugins: | ||
proposal-nullish-coalescing-operator { "android":"61", "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1", "samsung":"8.2" } | ||
proposal-optional-chaining { "android":"61", "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1", "samsung":"8.2" } | ||
proposal-json-strings { "android":"61", "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1", "samsung":"8.2" } | ||
proposal-optional-catch-binding { "android":"61", "chrome":"61", "edge":"16", "ios":"10.3", "opera":"48", "safari":"10.1", "samsung":"8.2" } | ||
proposal-async-generator-functions { "android":"61", "chrome":"61", "edge":"16", "ios":"10.3", "opera":"48", "safari":"10.1" } | ||
proposal-object-rest-spread { "edge":"16", "ios":"10.3", "safari":"10.1" } | ||
transform-dotall-regex { "android":"61", "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" } | ||
proposal-unicode-property-regex { "android":"61", "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1", "samsung":"8.2" } | ||
transform-named-capturing-groups-regex { "android":"61", "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1", "samsung":"8.2" } | ||
transform-async-to-generator { "ios":"10.3", "safari":"10.1" } | ||
transform-template-literals { "ios":"10.3", "safari":"10.1" } | ||
transform-function-name { "edge":"16" } | ||
transform-unicode-regex { "ios":"10.3", "safari":"10.1" } | ||
transform-parameters { "edge":"16" } | ||
transform-block-scoping { "ios":"10.3", "safari":"10.1" } | ||
transform-modules-commonjs { "android":"61", "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1", "samsung":"8.2" } | ||
proposal-dynamic-import { "android":"61", "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1", "samsung":"8.2" } | ||
|
||
Using polyfills: No polyfills were added, since the `useBuiltIns` option was not set. |
8 changes: 8 additions & 0 deletions
8
packages/babel-preset-env/test/fixtures/bugfixes/_esmodules/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Edge | ||
({ x = 2 }) => {}; | ||
|
||
// Safari | ||
{ | ||
let x; | ||
{ let x; } | ||
} |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
packages/babel-preset-env/test/fixtures/bugfixes/_esmodules/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Edge | ||
({ | ||
x: _x = 2 | ||
}) => {}; // Safari | ||
|
||
|
||
{ | ||
let x; | ||
{ | ||
let _x2; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
packages/babel-preset-env/test/fixtures/bugfixes/edge-default-params-esmodules/input.js
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
packages/babel-preset-env/test/fixtures/bugfixes/edge-default-params-esmodules/output.js
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...bel-preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-10-no-bugfixes/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
e => { | ||
for (let e of []); | ||
}; | ||
|
||
{ | ||
let a; | ||
{ let a; } | ||
} |
12 changes: 12 additions & 0 deletions
12
...preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-10-no-bugfixes/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"validateLogs": true, | ||
"presets": [ | ||
["env", { | ||
"debug": true, | ||
"bugfixes": false, | ||
"targets": { | ||
"safari": "10" | ||
} | ||
}] | ||
] | ||
} |
12 changes: 12 additions & 0 deletions
12
...el-preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-10-no-bugfixes/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
e => { | ||
for (var _e of []) { | ||
; | ||
} | ||
}; | ||
|
||
{ | ||
var a; | ||
{ | ||
var _a; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...l-preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-10-no-bugfixes/stdout.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@babel/preset-env: `DEBUG` option | ||
|
||
Using targets: | ||
{ | ||
"safari": "10" | ||
} | ||
|
||
Using modules transform: auto | ||
|
||
Using plugins: | ||
proposal-nullish-coalescing-operator { "safari":"10" } | ||
proposal-optional-chaining { "safari":"10" } | ||
proposal-json-strings { "safari":"10" } | ||
proposal-optional-catch-binding { "safari":"10" } | ||
proposal-async-generator-functions { "safari":"10" } | ||
proposal-object-rest-spread { "safari":"10" } | ||
transform-dotall-regex { "safari":"10" } | ||
proposal-unicode-property-regex { "safari":"10" } | ||
transform-named-capturing-groups-regex { "safari":"10" } | ||
transform-async-to-generator { "safari":"10" } | ||
transform-exponentiation-operator { "safari":"10" } | ||
transform-template-literals { "safari":"10" } | ||
transform-unicode-regex { "safari":"10" } | ||
transform-block-scoping { "safari":"10" } | ||
transform-modules-commonjs { "safari":"10" } | ||
proposal-dynamic-import { "safari":"10" } | ||
|
||
Using polyfills: No polyfills were added, since the `useBuiltIns` option was not set. |
8 changes: 8 additions & 0 deletions
8
packages/babel-preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-10/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
e => { | ||
for (let e of []); | ||
}; | ||
|
||
{ | ||
let a; | ||
{ let a; } | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/babel-preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-10/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"validateLogs": true, | ||
"presets": [ | ||
["env", { | ||
"debug": true, | ||
"bugfixes": true, | ||
"targets": { | ||
"safari": "10" | ||
} | ||
}] | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/babel-preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-10/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
e => { | ||
for (let _e of []); | ||
}; | ||
|
||
{ | ||
let a; | ||
{ | ||
let _a; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
packages/babel-preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-10/stdout.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@babel/preset-env: `DEBUG` option | ||
|
||
Using targets: | ||
{ | ||
"safari": "10" | ||
} | ||
|
||
Using modules transform: auto | ||
|
||
Using plugins: | ||
proposal-nullish-coalescing-operator { "safari":"10" } | ||
proposal-optional-chaining { "safari":"10" } | ||
proposal-json-strings { "safari":"10" } | ||
proposal-optional-catch-binding { "safari":"10" } | ||
proposal-async-generator-functions { "safari":"10" } | ||
proposal-object-rest-spread { "safari":"10" } | ||
transform-dotall-regex { "safari":"10" } | ||
proposal-unicode-property-regex { "safari":"10" } | ||
transform-named-capturing-groups-regex { "safari":"10" } | ||
transform-async-to-generator { "safari":"10" } | ||
transform-exponentiation-operator { "safari":"10" } | ||
transform-unicode-regex { "safari":"10" } | ||
bugfix/transform-safari-block-shadowing { "safari":"10" } | ||
bugfix/transform-safari-for-shadowing { "safari":"10" } | ||
bugfix/transform-tagged-template-caching { "safari":"10" } | ||
transform-modules-commonjs { "safari":"10" } | ||
proposal-dynamic-import { "safari":"10" } | ||
|
||
Using polyfills: No polyfills were added, since the `useBuiltIns` option was not set. |
8 changes: 8 additions & 0 deletions
8
packages/babel-preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-11/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
e => { | ||
for (let e of []); | ||
}; | ||
|
||
{ | ||
let a; | ||
{ let a; } | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/babel-preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-11/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"validateLogs": true, | ||
"presets": [ | ||
["env", { | ||
"debug": true, | ||
"bugfixes": true, | ||
"targets": { | ||
"safari": "11" | ||
} | ||
}] | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/babel-preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-11/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
e => { | ||
for (let e of []); | ||
}; | ||
|
||
{ | ||
let a; | ||
{ | ||
let a; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
packages/babel-preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-11/stdout.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@babel/preset-env: `DEBUG` option | ||
|
||
Using targets: | ||
{ | ||
"safari": "11" | ||
} | ||
|
||
Using modules transform: auto | ||
|
||
Using plugins: | ||
proposal-nullish-coalescing-operator { "safari":"11" } | ||
proposal-optional-chaining { "safari":"11" } | ||
proposal-json-strings { "safari":"11" } | ||
proposal-optional-catch-binding { "safari":"11" } | ||
proposal-async-generator-functions { "safari":"11" } | ||
proposal-object-rest-spread { "safari":"11" } | ||
transform-dotall-regex { "safari":"11" } | ||
proposal-unicode-property-regex { "safari":"11" } | ||
transform-named-capturing-groups-regex { "safari":"11" } | ||
transform-unicode-regex { "safari":"11" } | ||
bugfix/transform-tagged-template-caching { "safari":"11" } | ||
transform-modules-commonjs { "safari":"11" } | ||
proposal-dynamic-import { "safari":"11" } | ||
|
||
Using polyfills: No polyfills were added, since the `useBuiltIns` option was not set. |
8 changes: 8 additions & 0 deletions
8
packages/babel-preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-9/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
e => { | ||
for (let e of []); | ||
}; | ||
|
||
{ | ||
let a; | ||
{ let a; } | ||
} |
13 changes: 13 additions & 0 deletions
13
packages/babel-preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-9/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"validateLogs": true, | ||
"presets": [ | ||
["env", { | ||
"debug": true, | ||
"bugfixes": true, | ||
"targets": { | ||
"safari": "9" | ||
}, | ||
"exclude": ["transform-for-of", "transform-arrow-functions"] | ||
}] | ||
] | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/babel-preset-env/test/fixtures/bugfixes/safari-block-scoping-safari-9/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
e => { | ||
for (var _e of []) { | ||
; | ||
} | ||
}; | ||
|
||
{ | ||
var a; | ||
{ | ||
var _a; | ||
} | ||
} |
Oops, something went wrong.