Skip to content

Commit c7e0acf

Browse files
committed
fix input
1 parent c8575da commit c7e0acf

File tree

1 file changed

+11
-11
lines changed
  • crates/swc_ecma_minifier/tests/fixture/issues/10936

1 file changed

+11
-11
lines changed

crates/swc_ecma_minifier/tests/fixture/issues/10936/input.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ const params = [
1313
console.log(params);
1414

1515
// Additional test cases
16-
const test1 = [1, null, 2].join('');
17-
const test2 = [1, undefined, 2].join('');
18-
const test3 = [1, variable?.notExist, 2].join('');
19-
const test4 = [1, variable.data?.value, 2].join('');
20-
const test5 = [1, obj?.a?.b?.c, 2].join('');
16+
export const test1 = [1, null, 2].join('');
17+
export const test2 = [1, undefined, 2].join('');
18+
export const test3 = [1, variable?.notExist, 2].join('');
19+
export const test4 = [1, variable.data?.value, 2].join('');
20+
export const test5 = [1, obj?.a?.b?.c, 2].join('');
2121

2222
// Function calls can return null/undefined
23-
const test6 = [1, someFunction(), 2].join('');
24-
const test7 = [1, obj.method(), 2].join('');
23+
export const test6 = [1, someFunction(), 2].join('');
24+
export const test7 = [1, obj.method(), 2].join('');
2525

2626
// Identifiers can be null/undefined
27-
const test8 = [1, unknownVar, 2].join('');
27+
export const test8 = [1, unknownVar, 2].join('');
2828

2929
// Other expressions that can be null/undefined
30-
const test9 = [1, condition ? null : 'x', 2].join('');
31-
const test10 = [1, await promise, 2].join('');
32-
const test11 = [1, new Constructor(), 2].join('');
30+
export const test9 = [1, condition ? null : 'x', 2].join('');
31+
export const test10 = [1, await promise, 2].join('');
32+
export const test11 = [1, new Constructor(), 2].join('');

0 commit comments

Comments
 (0)