-
-
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
179 changed files
with
160 additions
and
342 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
new Date()?.toLocaleDateString(); | ||
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 +1 @@ | ||
(obj?.a).b,(obj?.a)(),(obj?.a)[0],(obj?.a)`hello`,(obj.a?.()).a,(obj.a?.())(),(obj.a?.())[0],(obj.a?.())`hello`,a?.b,a?.(); | ||
(obj?.a).b,(obj?.a)(),(obj?.a)[0],(obj.a?.()).a,(obj.a?.())(),(obj.a?.())[0]; |
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
crates/swc/tests/tsc-references/InvalidNonInstantiatedModule.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,2 +1 @@ | ||
//// [InvalidNonInstantiatedModule.ts] | ||
M; |
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/MemberFunctionDeclaration3_es6.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,2 +1 @@ | ||
//// [MemberFunctionDeclaration3_es6.ts] | ||
foo; |
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,2 +1,2 @@ | ||
//// [asOpEmitParens.ts] | ||
x, x.y, new (x()); | ||
x.y, new (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
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/checkJsxGenericTagHasCorrectInferences.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,3 +1,2 @@ | ||
//// [file.tsx] | ||
import * as React from "react"; | ||
/*#__PURE__*/ GenericComponent, /*#__PURE__*/ GenericComponent, /*#__PURE__*/ GenericComponent, /*#__PURE__*/ GenericComponent; |
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/classAbstractSingleLineDecl.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,6 @@ class C extends B { | |
this.c = super.a; | ||
} | ||
static{ | ||
this.b, super.b, super.a; | ||
this.b; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -15,6 +15,6 @@ class C extends B { | |
this.c = super.a; | ||
} | ||
static{ | ||
this.b, super.b, super.a; | ||
this.b; | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/commonTypeIntersection.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,2 +1 @@ | ||
//// [commonTypeIntersection.ts] | ||
x1, x2; |
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/comparisonOperatorWithIntersectionType.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,2 +1 @@ | ||
//// [comparisonOperatorWithIntersectionType.ts] | ||
a, b; |
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/comparisonOperatorWithNumberOperand.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,2 +1 @@ | ||
//// [comparisonOperatorWithNumberOperand.ts] | ||
t1; |
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/controlFlowForInStatement2.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,2 +1 @@ | ||
//// [controlFlowForInStatement2.ts] | ||
'a' in c && c, 'a' in c && c, 'b' in c && c, 'b' in c && c; |
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/controlFlowInOperator.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,2 +1,2 @@ | ||
//// [controlFlowInOperator.ts] | ||
'a' in c && (c, c.a), 'd' in c && c, 'a' in c && (c, c.a), 'd' in c && c; | ||
'a' in c && c.a, 'a' in c && c.a; |
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/controlFlowNullishCoalesce.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,3 +1,3 @@ | ||
//// [controlFlowNullishCoalesce.ts] | ||
var a; | ||
null != o ? o : a = 1, a.toString(), null == o || o; | ||
null != o || (a = 1), a.toString(); |
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/controlFlowOptionalChain.2.minified.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/emitArrowFunctionWhenUsingArguments01.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,2 +1 @@ | ||
//// [emitArrowFunctionWhenUsingArguments01.ts] | ||
arguments; |
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/emitArrowFunctionWhenUsingArguments02.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,2 +1 @@ | ||
//// [emitArrowFunctionWhenUsingArguments02.ts] | ||
arguments; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
//// [for-of7.ts] | ||
for (let v1 of (v, [ | ||
for (let v1 of [ | ||
0 | ||
])); | ||
]); |
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/genericContextualTypes1.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
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 |
---|---|---|
|
@@ -5,5 +5,5 @@ var A = function A() { | |
}; | ||
export { A as default }; | ||
//// [/b.ts] | ||
new A(), A; | ||
new A(); | ||
export { }; |
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/independentPropertyVariance.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,2 +1 @@ | ||
//// [independentPropertyVariance.ts] | ||
x, y; |
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/instanceofOperatorWithRHSHasSymbolHasInstance.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,2 +1 @@ | ||
//// [instanceofOperatorWithRHSHasSymbolHasInstance.ts] | ||
lhs0 instanceof rhs0 && lhs0, lhs0 instanceof rhs1 && lhs0, lhs0 instanceof rhs2 && lhs0, lhs0 instanceof rhs3 && lhs0, lhs0 instanceof rhs4 && lhs0, lhs0 instanceof rhs5 && lhs0, lhs0 instanceof rhs6 && lhs0, lhs0 instanceof Rhs7 && lhs0, lhs0 instanceof Rhs8 && lhs0, lhs0 instanceof Rhs9 && lhs0, lhs0 instanceof Rhs10 && lhs0, lhs0 instanceof Rhs11 && lhs0, lhs0 instanceof Rhs12 && lhs0, lhs0 instanceof Rhs13 && lhs0, lhs1 instanceof rhs0 && lhs1, lhs1 instanceof rhs1 && lhs1, lhs1 instanceof rhs2 && lhs1, lhs1 instanceof Rhs7 && lhs1, lhs1 instanceof Rhs8 && lhs1, lhs1 instanceof Rhs9 && lhs1, lhs2 instanceof rhs0 && lhs2, lhs2 instanceof rhs1 && lhs2, lhs2 instanceof rhs2 && lhs2, lhs2 instanceof rhs3 && lhs2, lhs2 instanceof rhs4 && lhs2, lhs2 instanceof rhs5 && lhs2, lhs2 instanceof Rhs7 && lhs2, lhs2 instanceof Rhs8 && lhs2, lhs2 instanceof Rhs9 && lhs2, lhs2 instanceof Rhs10 && lhs2, lhs2 instanceof Rhs11 && lhs2, lhs2 instanceof Rhs12 && lhs2, lhs3 instanceof rhs0 && lhs3, lhs3 instanceof rhs1 && lhs3, lhs3 instanceof rhs2 && lhs3, lhs3 instanceof rhs3 && lhs3, lhs3 instanceof rhs4 && lhs3, lhs3 instanceof rhs5 && lhs3, lhs3 instanceof rhs6 && lhs3, lhs3 instanceof Rhs7 && lhs3, lhs3 instanceof Rhs8 && lhs3, lhs3 instanceof Rhs9 && lhs3, lhs3 instanceof Rhs10 && lhs3, lhs3 instanceof Rhs11 && lhs3, lhs3 instanceof Rhs12 && lhs3, lhs3 instanceof Rhs13 && lhs3, lhs4 instanceof rhs0 && lhs4, lhs4 instanceof rhs1 && lhs4, lhs4 instanceof rhs2 && lhs4, lhs4 instanceof rhs3 && lhs4, lhs4 instanceof rhs4 && lhs4, lhs4 instanceof rhs5 && lhs4, lhs4 instanceof Rhs7 && lhs4, lhs4 instanceof Rhs8 && lhs4, lhs4 instanceof Rhs9 && lhs4, lhs4 instanceof Rhs10 && lhs4, lhs4 instanceof Rhs11 && lhs4, lhs4 instanceof Rhs12 && lhs4, obj instanceof A && obj, obj instanceof B && obj, lhs0 instanceof rhs14 && lhs0, lhs0 instanceof rhs15 && lhs0; |
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/intersectionReduction.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,2 +1,2 @@ | ||
//// [intersectionReduction.ts] | ||
ab.kind, x, f10(a1), f10(a2), s2 = s1 = s2, t2 = t1 = t2, shouldBeB; | ||
ab.kind, f10(a1), f10(a2), s2 = s1 = s2, t2 = t1 = t2; |
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/intersectionReductionStrict.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,2 +1,2 @@ | ||
//// [intersectionReductionStrict.ts] | ||
ab.kind, x, s2 = s1 = s2, t2 = t1 = t2; | ||
ab.kind, s2 = s1 = s2, t2 = t1 = t2; |
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/intersectionWithIndexSignatures.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,2 +1,2 @@ | ||
//// [intersectionWithIndexSignatures.ts] | ||
ta1 = sa1, ta1 = sa2, ta2 = sa1, ta2 = sa2, tb1 = sb1, q.asd.a.substr(1), q.asd.b, q, tt = ss; | ||
ta1 = sa1, ta1 = sa2, ta2 = sa1, ta2 = sa2, tb1 = sb1, q.asd.a.substr(1), q.asd.b, tt = ss; |
16 changes: 8 additions & 8 deletions
16
crates/swc/tests/tsc-references/jsxReactTestSuite.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
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/logicalAssignment1(target=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,2 +1,2 @@ | ||
//// [logicalAssignment1.ts] | ||
a && (a = "foo"), b || (b = "foo"), null != c ? c : c = "foo", d && (d = 42), e || (e = 42), null != f ? f : f = 42, g && (g = 42), h || (h = 42), null != i ? i : i = 42; | ||
a && (a = "foo"), b || (b = "foo"), null != c || (c = "foo"), d && (d = 42), e || (e = 42), null != f || (f = 42), g && (g = 42), h || (h = 42), null != i || (i = 42); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,3 @@ export var v3 = !0; | |
//! 4 | var t3 = file3.v3; | ||
//! `---- | ||
//// [file5.ts] | ||
v2; |
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
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/nullishCoalescingOperator1.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,2 +1,2 @@ | ||
//// [nullishCoalescingOperator1.ts] | ||
null != a1 && a1, null != a2 && a2, null != a3 && a3, null != a4 && a4, null != b1 && b1, null != b2 && b2, null != b3 && b3, null != b4 && b4, null == c1 || c1, null == c2 || c2, null == c3 || c3, null == c4 || c4, null != d1 && d1, null != d2 && d2, null != d3 && d3, null != d4 && d4, foo(), foo(), foo(); | ||
foo(), foo(), foo(); |
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/nullishCoalescingOperator11.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,2 +1,2 @@ | ||
//// [nullishCoalescingOperator11.ts] | ||
null != f11 ? f11 : f11.toFixed(); | ||
null != f11 || f11.toFixed(); |
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/nullishCoalescingOperator2.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,2 +1 @@ | ||
//// [nullishCoalescingOperator2.ts] | ||
null != a1 && a1, null != a2 && a2, null != a3 && a3, null != a4 && a4, null != a5 && a5, null != a6 && a6, null != a7 && a7, null != a8 && a8, null != a9 && a9; |
2 changes: 0 additions & 2 deletions
2
crates/swc/tests/tsc-references/nullishCoalescingOperator3.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,3 +1 @@ | ||
//// [nullishCoalescingOperator3.ts] | ||
var _ref, _ref1, _ref2, _ref3; | ||
null !== (_ref3 = null !== (_ref2 = null !== (_ref1 = null !== (_ref = null != a1 ? a1 : a2) && void 0 !== _ref ? _ref : a3) && void 0 !== _ref1 ? _ref1 : a4) && void 0 !== _ref2 ? _ref2 : a5) && void 0 !== _ref3 || a6; |
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/nullishCoalescingOperator4.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,2 +1,2 @@ | ||
//// [nullishCoalescingOperator4.ts] | ||
null != a1 ? a1 : a1.toLowerCase(), a1 || a1.toLocaleUpperCase(); | ||
null != a1 || a1.toLowerCase(), a1 || a1.toLocaleUpperCase(); |
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/nullishCoalescingOperator7.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,2 +1 @@ | ||
//// [nullishCoalescingOperator7.ts] | ||
a, null != a && a, (null != a ? a : 'foo') ? null != b && b : null != c && c; |
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/nullishCoalescingOperator9.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,2 +1 @@ | ||
//// [nullishCoalescingOperator9.ts] | ||
f, null != f && f; |
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/nullishCoalescingOperator_es2020.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,2 +1 @@ | ||
//// [nullishCoalescingOperator_es2020.ts] | ||
a1, a2, a3, a4, a5, a6, a7, a8, a9, (a ?? b) || c, c || (a ?? b), (a ?? b) || c, c || (a ?? b), (a ?? b) || c, c || (a ?? b), (a ?? b) && c, c && (a ?? b), (a ?? b) && c, c && (a ?? b), (a ?? b) && c, c && (a ?? b); |
1 change: 0 additions & 1 deletion
1
crates/swc/tests/tsc-references/nullishCoalescingOperator_not_strict.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,2 +1 @@ | ||
//// [nullishCoalescingOperator_not_strict.ts] | ||
null != a1 && a1, null != a2 && a2, null != a3 && a3, null != a4 && a4, null != a5 && a5, null != a6 && a6, null != a7 && a7, null != a8 && a8, null != a9 && a9; |
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
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/objectLiteralShorthandPropertiesWithModule.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,3 +1,3 @@ | ||
//// [objectLiteralShorthandPropertiesWithModule.ts] | ||
var m; | ||
m || (m = {}), m || (m = {}), x, x, x; | ||
m || (m = {}), m || (m = {}); |
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/objectLiteralShorthandPropertiesWithModuleES6.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,3 +1,3 @@ | ||
//// [objectLiteralShorthandPropertiesWithModuleES6.ts] | ||
var m; | ||
m || (m = {}), m || (m = {}), x, x, x; | ||
m || (m = {}), m || (m = {}); |
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
2 changes: 1 addition & 1 deletion
2
...s/swc/tests/tsc-references/optionalPropertyAssignableToStringIndexSignature.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,2 +1,2 @@ | ||
//// [optionalPropertyAssignableToStringIndexSignature.ts] | ||
stringDictionary = optionalProperties, stringDictionary = undefinedProperties, probablyArray = numberLiteralKeys, optionalUndefined; | ||
stringDictionary = optionalProperties, stringDictionary = undefinedProperties, probablyArray = numberLiteralKeys; |
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
3 changes: 0 additions & 3 deletions
3
crates/swc/tests/tsc-references/paramTagOnFunctionUsingArguments.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,5 +1,2 @@ | ||
//// [decls.d.ts] | ||
//// [a.js] | ||
!function() { | ||
arguments; | ||
}(1, 2, 3); |
4 changes: 0 additions & 4 deletions
4
crates/swc/tests/tsc-references/parenthesizedContexualTyping3.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,5 +1 @@ | ||
//// [parenthesizedContexualTyping3.ts] | ||
function tempFun(tempStrs, g, x) { | ||
return g(x); | ||
} | ||
tempFun`${(x)=>x} ${10}`, tempFun`${(x)=>x} ${10}`, tempFun`${(x)=>x} ${10}`, tempFun`${(x)=>x} ${(x)=>x} ${10}`, tempFun`${(x)=>x} ${(x)=>x} ${10}`, tempFun`${(x)=>x} ${(x)=>x} ${10}`, tempFun`${(x)=>x} ${(x)=>x} ${10}`, tempFun`${(x)=>x} ${(x)=>x} ${void 0}`; |
2 changes: 0 additions & 2 deletions
2
crates/swc/tests/tsc-references/parserArrowFunctionExpression10.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,5 +1,3 @@ | ||
//// [parserArrowFunctionExpression10.ts] | ||
//// [fileJs.js] | ||
a || ((e)=>f); | ||
//// [fileTs.ts] | ||
a || ((e)=>f); |
2 changes: 0 additions & 2 deletions
2
crates/swc/tests/tsc-references/parserArrowFunctionExpression12.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,5 +1,3 @@ | ||
//// [parserArrowFunctionExpression12.ts] | ||
//// [fileJs.js] | ||
a || ((d)=>e); | ||
//// [fileTs.ts] | ||
a || ((d)=>e); |
2 changes: 0 additions & 2 deletions
2
crates/swc/tests/tsc-references/parserArrowFunctionExpression13.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,5 +1,3 @@ | ||
//// [parserArrowFunctionExpression13.ts] | ||
//// [fileJs.js] | ||
a || (()=>null); | ||
//// [fileTs.ts] | ||
a || (()=>null); |
4 changes: 2 additions & 2 deletions
4
crates/swc/tests/tsc-references/parserArrowFunctionExpression14.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,5 +1,5 @@ | ||
//// [parserArrowFunctionExpression14.ts] | ||
//// [fileJs.js] | ||
a() || e; | ||
a(); | ||
//// [fileTs.ts] | ||
a() || e; | ||
a(); |
Oops, something went wrong.