-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
77 changed files
with
271 additions
and
431 deletions.
There are no files selected for viewing
11 changes: 5 additions & 6 deletions
11
crates/swc/tests/tsc-references/ES5For-of10_es2015.2.minified.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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
function foo() { | ||
return { | ||
x: 0 | ||
}; | ||
} | ||
for (foo().x of [])for (foo().x of [])foo().x; | ||
for (({ | ||
x: 0 | ||
}).x of [])for (({ | ||
x: 0 | ||
}).x of []); |
9 changes: 2 additions & 7 deletions
9
crates/swc/tests/tsc-references/ES5For-of10_es5.2.minified.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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
function foo() { | ||
return { | ||
x: 0 | ||
}; | ||
} | ||
for(var _i = 0, _iter = []; _i < _iter.length; _i++){ | ||
foo().x = _iter[_i]; | ||
for(var _i1 = 0, _iter1 = []; _i1 < _iter1.length; _i1++)foo().x = _iter1[_i1], foo().x; | ||
_iter[_i]; | ||
for(var _i1 = 0, _iter1 = []; _i1 < _iter1.length; _i1++)_iter1[_i1]; | ||
} |
11 changes: 4 additions & 7 deletions
11
crates/swc/tests/tsc-references/ES5For-of34_es2015.2.minified.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 |
---|---|---|
@@ -1,10 +1,7 @@ | ||
function foo() { | ||
return { | ||
x: 0 | ||
}; | ||
} | ||
for (foo().x of [ | ||
for (({ | ||
x: 0 | ||
}).x of [ | ||
'a', | ||
'b', | ||
'c' | ||
])foo().x; | ||
]); |
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
function foo() { | ||
return { | ||
x: 0 | ||
}; | ||
} | ||
for(var _i = 0, _iter = [ | ||
"a", | ||
"b", | ||
"c" | ||
]; _i < _iter.length; _i++)foo().x = _iter[_i], foo().x; | ||
]; _i < _iter.length; _i++)_iter[_i]; |
11 changes: 4 additions & 7 deletions
11
crates/swc/tests/tsc-references/ES5For-of8_es2015.2.minified.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 |
---|---|---|
@@ -1,10 +1,7 @@ | ||
function foo() { | ||
return { | ||
x: 0 | ||
}; | ||
} | ||
for (foo().x of [ | ||
for (({ | ||
x: 0 | ||
}).x of [ | ||
'a', | ||
'b', | ||
'c' | ||
])foo().x; | ||
]); |
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
function foo() { | ||
return { | ||
x: 0 | ||
}; | ||
} | ||
for(var _i = 0, _iter = [ | ||
"a", | ||
"b", | ||
"c" | ||
]; _i < _iter.length; _i++)foo().x = _iter[_i], foo().x; | ||
]; _i < _iter.length; _i++)_iter[_i]; |
11 changes: 5 additions & 6 deletions
11
crates/swc/tests/tsc-references/ES5For-of9_es2015.2.minified.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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
function foo() { | ||
return { | ||
x: 0 | ||
}; | ||
} | ||
for (foo().x of [])for (foo().x of [])foo().x; | ||
for (({ | ||
x: 0 | ||
}).x of [])for (({ | ||
x: 0 | ||
}).x of []); |
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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
function foo() { | ||
return { | ||
x: 0 | ||
}; | ||
} | ||
for(var _i = 0, _iter = []; _i < _iter.length; _i++){ | ||
foo().x = _iter[_i]; | ||
for(var _i1 = 0, _iter1 = []; _i1 < _iter1.length; _i1++)foo().x = _iter1[_i1], foo().x; | ||
_iter[_i]; | ||
for(var _i1 = 0, _iter1 = []; _i1 < _iter1.length; _i1++)_iter1[_i1]; | ||
} |
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
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
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
12 changes: 3 additions & 9 deletions
12
crates/swc/tests/tsc-references/functionImplementations_es2015.2.minified.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 |
---|---|---|
@@ -1,16 +1,10 @@ | ||
function rec1() { | ||
return rec2(); | ||
} | ||
function rec2() { | ||
return rec1(); | ||
} | ||
function rec3() { | ||
return rec4(); | ||
return rec2(); | ||
} | ||
function rec4() { | ||
return rec3(); | ||
return rec4(); | ||
} | ||
rec1(), rec2(), rec3(), rec4(); | ||
rec2(), rec2(), rec4(), rec4(); | ||
class Base { | ||
} | ||
new Base(), new Base(); |
12 changes: 3 additions & 9 deletions
12
crates/swc/tests/tsc-references/functionImplementations_es5.2.minified.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
Oops, something went wrong.