Skip to content

Commit 238aa65

Browse files
committed
Fix function-expression test
1 parent 9edfa28 commit 238aa65

File tree

3 files changed

+3
-91
lines changed

3 files changed

+3
-91
lines changed
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"asc_flags": [
3-
],
4-
"stderr": [
5-
"TS2300: Duplicate identifier 'a'"
63
]
74
}

tests/compiler/function-expression.optimized.wat

Lines changed: 3 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
(module
2-
<<<<<<< HEAD
3-
=======
4-
(type $i32_=>_i32 (func (param i32) (result i32)))
5-
>>>>>>> master
62
(type $none_=>_i32 (func (result i32)))
73
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
84
(type $i32_=>_i32 (func (param i32) (result i32)))
95
(type $none_=>_none (func))
106
(type $i32_=>_none (func (param i32)))
117
(type $i32_i32_=>_none (func (param i32 i32)))
12-
(type $i32_i32_i32_=>_none (func (param i32 i32 i32)))
138
(type $i32_i32_i32_i32_=>_none (func (param i32 i32 i32 i32)))
9+
(type $i32_i32_i32_=>_none (func (param i32 i32 i32)))
1410
(type $i64_=>_i64 (func (param i64) (result i64)))
1511
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
1612
(global $~lib/rt/itcms/total (mut i32) (i32.const 0))
@@ -1119,22 +1115,13 @@
11191115
local.get $0
11201116
i32.const 15
11211117
i32.and
1122-
<<<<<<< HEAD
1123-
i32.eqz
1124-
i32.const 0
1125-
local.get $0
1126-
select
1127-
if (result i32)
1128-
local.get $1
1129-
=======
11301118
i32.const 1
1131-
local.get $1
1119+
local.get $0
11321120
select
11331121
if (result i32)
11341122
i32.const 1
11351123
else
1136-
local.get $0
1137-
>>>>>>> master
1124+
local.get $1
11381125
i32.load
11391126
i32.const 1
11401127
i32.and
@@ -1445,7 +1432,6 @@
14451432
i32.store offset=4
14461433
local.get $0
14471434
local.get $1
1448-
<<<<<<< HEAD
14491435
i32.store offset=8
14501436
local.get $1
14511437
local.get $0
@@ -1458,73 +1444,6 @@
14581444
local.get $2
14591445
local.get $0
14601446
i32.store offset=8
1461-
=======
1462-
)
1463-
(func $~lib/rt/itcms/__new (result i32)
1464-
(local $0 i32)
1465-
(local $1 i32)
1466-
global.get $~lib/rt/itcms/total
1467-
global.get $~lib/rt/itcms/threshold
1468-
i32.ge_u
1469-
if
1470-
block $__inlined_func$~lib/rt/itcms/interrupt
1471-
i32.const 2048
1472-
local.set $0
1473-
loop $do-continue|0
1474-
local.get $0
1475-
call $~lib/rt/itcms/step
1476-
i32.sub
1477-
local.set $0
1478-
global.get $~lib/rt/itcms/state
1479-
i32.eqz
1480-
if
1481-
global.get $~lib/rt/itcms/total
1482-
i64.extend_i32_u
1483-
i64.const 200
1484-
i64.mul
1485-
i64.const 100
1486-
i64.div_u
1487-
i32.wrap_i64
1488-
i32.const 1024
1489-
i32.add
1490-
global.set $~lib/rt/itcms/threshold
1491-
br $__inlined_func$~lib/rt/itcms/interrupt
1492-
end
1493-
local.get $0
1494-
i32.const 0
1495-
i32.gt_s
1496-
br_if $do-continue|0
1497-
end
1498-
global.get $~lib/rt/itcms/total
1499-
global.get $~lib/rt/itcms/total
1500-
global.get $~lib/rt/itcms/threshold
1501-
i32.sub
1502-
i32.const 1024
1503-
i32.lt_u
1504-
i32.const 10
1505-
i32.shl
1506-
i32.add
1507-
global.set $~lib/rt/itcms/threshold
1508-
end
1509-
end
1510-
global.get $~lib/rt/tlsf/ROOT
1511-
i32.eqz
1512-
if
1513-
call $~lib/rt/tlsf/initialize
1514-
end
1515-
global.get $~lib/rt/tlsf/ROOT
1516-
call $~lib/rt/tlsf/allocateBlock
1517-
local.tee $0
1518-
i32.const 8
1519-
i32.store offset=12
1520-
local.get $0
1521-
i32.const 4
1522-
i32.store offset=16
1523-
local.get $0
1524-
global.get $~lib/rt/itcms/fromSpace
1525-
global.get $~lib/rt/itcms/white
1526-
call $~lib/rt/itcms/Object#linkTo
1527-
>>>>>>> master
15281447
global.get $~lib/rt/itcms/total
15291448
local.get $0
15301449
i32.load

tests/compiler/function-expression.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,3 @@ export function semanticallyAnonymous(): void {
9393
assert(fnDecl != exprDecl);
9494
}
9595
semanticallyAnonymous();
96-
97-
var duplicateParams = (a: i32, a: i32): void => {};
98-
// TS2300: Duplicate identifier 'a'
99-
duplicateParams(1, 2);

0 commit comments

Comments
 (0)