File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
test/core/custom-page-sizes Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 22;;
33;; These modules are valid, but instantiating them is unnecessary
44;; and would only allocate very large memories and slow down running
5- ;; the spec tests. Therefore, add a missing import so that it cannot
5+ ;; the spec tests. Therefore, add an invalid import so that it cannot
66;; be instantiated and use `assert_unlinkable`. This approach
77;; enforces that the module itself is still valid, but that its
88;; instantiation fails early (hopefully before any memories are
99;; actually allocated).
1010
11+ ;; Helper module that exports a non-matching value.
12+ (module
13+ (memory (export " unknown" ) 0 ))
14+
15+ (register " test" )
16+
1117;; i32 (pagesize 1)
1218(assert_unlinkable
1319 (module
Original file line number Diff line number Diff line change 22;;
33;; These modules are valid, but instantiating them is unnecessary
44;; and would only allocate very large memories and slow down running
5- ;; the spec tests. Therefore, add a missing import so that it cannot
5+ ;; the spec tests. Therefore, add an invalid import so that it cannot
66;; be instantiated and use `assert_unlinkable`. This approach
77;; enforces that the module itself is still valid, but that its
88;; instantiation fails early (hopefully before any memories are
99;; actually allocated).
1010
11+ ;; Helper module that exports a non-matching value.
12+ (module
13+ (memory (export " unknown" ) 0 ))
14+
15+ (register " test" )
16+
1117;; i64 (pagesize 1)
1218(assert_unlinkable
1319 (module
You can’t perform that action at this time.
0 commit comments