Skip to content

Fix asc-constants test failing during publish #1775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tests/compiler/asc-constants.ts
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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