Skip to content
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
8 changes: 7 additions & 1 deletion test/core/custom-page-sizes/memory_max.wast
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
;;
;; These modules are valid, but instantiating them is unnecessary
;; and would only allocate very large memories and slow down running
;; the spec tests. Therefore, add a missing import so that it cannot
;; the spec tests. Therefore, add an invalid import so that it cannot
;; be instantiated and use `assert_unlinkable`. This approach
;; enforces that the module itself is still valid, but that its
;; instantiation fails early (hopefully before any memories are
;; actually allocated).

;; Helper module that exports a non-matching value.
(module
(memory (export "unknown") 0))

(register "test")

;; i32 (pagesize 1)
(assert_unlinkable
(module
Expand Down
8 changes: 7 additions & 1 deletion test/core/custom-page-sizes/memory_max_i64.wast
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
;;
;; These modules are valid, but instantiating them is unnecessary
;; and would only allocate very large memories and slow down running
;; the spec tests. Therefore, add a missing import so that it cannot
;; the spec tests. Therefore, add an invalid import so that it cannot
;; be instantiated and use `assert_unlinkable`. This approach
;; enforces that the module itself is still valid, but that its
;; instantiation fails early (hopefully before any memories are
;; actually allocated).

;; Helper module that exports a non-matching value.
(module
(memory (export "unknown") 0))

(register "test")

;; i64 (pagesize 1)
(assert_unlinkable
(module
Expand Down
Loading