Skip to content

Commit

Permalink
fix: Fix asc-constants test failing during publish (#1775)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Mar 31, 2021
1 parent aec42cc commit cf2d392
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 4 additions & 3 deletions tests/compiler/asc-constants.ts
Expand Up @@ -17,6 +17,7 @@ ASC_FEATURE_MULTI_VALUE;
ASC_FEATURE_GC;
ASC_FEATURE_MEMORY64;

ASC_VERSION_MAJOR;
ASC_VERSION_MINOR;
ASC_VERSION_PATCH;
// versions vary between builds
isDefined(ASC_VERSION_MAJOR);
isDefined(ASC_VERSION_MINOR);
isDefined(ASC_VERSION_PATCH);
9 changes: 3 additions & 6 deletions tests/compiler/asc-constants.untouched.wat
Expand Up @@ -19,9 +19,6 @@
(global $~lib/ASC_FEATURE_MULTI_VALUE i32 (i32.const 0))
(global $~lib/ASC_FEATURE_GC i32 (i32.const 0))
(global $~lib/ASC_FEATURE_MEMORY64 i32 (i32.const 0))
(global $~lib/ASC_VERSION_MAJOR i32 (i32.const 0))
(global $~lib/ASC_VERSION_MINOR i32 (i32.const 0))
(global $~lib/ASC_VERSION_PATCH i32 (i32.const 0))
(global $~lib/memory/__data_end i32 (i32.const 8))
(global $~lib/memory/__stack_pointer (mut i32) (i32.const 16392))
(global $~lib/memory/__heap_base i32 (i32.const 16392))
Expand Down Expand Up @@ -62,11 +59,11 @@
drop
i32.const 0
drop
i32.const 0
i32.const 1
drop
i32.const 0
i32.const 1
drop
i32.const 0
i32.const 1
drop
)
(func $~start
Expand Down

0 comments on commit cf2d392

Please sign in to comment.