Skip to content

Commit cf2d392

Browse files
authored
fix: Fix asc-constants test failing during publish (AssemblyScript#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

Lines changed: 4 additions & 3 deletions
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

Lines changed: 3 additions & 6 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy