Skip to content

Commit c8575da

Browse files
committed
Update test refs
1 parent 6fc09df commit c8575da

File tree

1 file changed

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

1 file changed

+13
-27
lines changed
Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
11
const variable = {};
2-
const params = [
3-
'OrderNumber=',
4-
variable.data?.orderNumber,
5-
'|AuditNo=',
6-
variable.data?.auditNo,
7-
'|JournalType=',
8-
transactionTypeCode[variable.data.transactionType],
9-
'|IsPreview=0'
10-
].join('');
11-
console.log(params);
12-
const test1 = "12";
13-
const test2 = "12";
14-
const test3 = [
15-
1,
16-
variable?.notExist,
17-
2
18-
].join('');
19-
const test4 = [
20-
1,
21-
variable.data?.value,
22-
2
23-
].join('');
24-
const test5 = [
25-
1,
26-
obj?.a?.b?.c,
27-
2
28-
].join('');
2+
console.log("OrderNumber=" + variable.data?.orderNumber + "|AuditNo=" + variable.data?.auditNo + "|JournalType=" + transactionTypeCode[variable.data.transactionType] + "|IsPreview=0");
3+
variable?.notExist;
4+
variable.data?.value;
5+
obj?.a?.b?.c;
6+
// Function calls can return null/undefined
7+
someFunction();
8+
obj.method();
9+
// Identifiers can be null/undefined
10+
unknownVar;
11+
// Other expressions that can be null/undefined
12+
condition;
13+
await promise;
14+
new Constructor();

0 commit comments

Comments
 (0)