Skip to content

Commit cf2d392

Browse files
authored
fix: Fix asc-constants test failing during publish (#1775)
1 parent aec42cc commit cf2d392

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

tests/compiler/asc-constants.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ASC_FEATURE_MULTI_VALUE;
1717
ASC_FEATURE_GC;
1818
ASC_FEATURE_MEMORY64;
1919

20-
ASC_VERSION_MAJOR;
21-
ASC_VERSION_MINOR;
22-
ASC_VERSION_PATCH;
20+
// versions vary between builds
21+
isDefined(ASC_VERSION_MAJOR);
22+
isDefined(ASC_VERSION_MINOR);
23+
isDefined(ASC_VERSION_PATCH);

tests/compiler/asc-constants.untouched.wat

+3-6
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
(global $~lib/ASC_FEATURE_MULTI_VALUE i32 (i32.const 0))
2020
(global $~lib/ASC_FEATURE_GC i32 (i32.const 0))
2121
(global $~lib/ASC_FEATURE_MEMORY64 i32 (i32.const 0))
22-
(global $~lib/ASC_VERSION_MAJOR i32 (i32.const 0))
23-
(global $~lib/ASC_VERSION_MINOR i32 (i32.const 0))
24-
(global $~lib/ASC_VERSION_PATCH i32 (i32.const 0))
2522
(global $~lib/memory/__data_end i32 (i32.const 8))
2623
(global $~lib/memory/__stack_pointer (mut i32) (i32.const 16392))
2724
(global $~lib/memory/__heap_base i32 (i32.const 16392))
@@ -62,11 +59,11 @@
6259
drop
6360
i32.const 0
6461
drop
65-
i32.const 0
62+
i32.const 1
6663
drop
67-
i32.const 0
64+
i32.const 1
6865
drop
69-
i32.const 0
66+
i32.const 1
7067
drop
7168
)
7269
(func $~start

0 commit comments

Comments
 (0)