- Remove "--enable-reference-types" and "--enable-bulk-memory" for wat2wasm to support finished proposals. - Ignore invalid module in the thread spec repo: ``` wast ;; my_elem.wast (module (table $t 10 funcref) (func $f) (elem $t (i32.const 0) 0) (elem $t (i32.const 0) $f $f) (elem $t (offset (i32.const 0)) $f $f) ) ``` run with reference interpreter under spec/interpreter: ``` shell $ ./wasm ../../../my_elem.wast ../../../my_elem.wast:5.9-5.11: syntax error: duplicate elem segment $t ``` - use a specific commit instead of the latest commit on the thread spec repo
This commit is contained in:
@ -163,9 +163,24 @@ index b9fa438c..a5711dd3 100644
|
||||
;; 1 elem segment declared, 2 given
|
||||
(assert_malformed
|
||||
diff --git a/test/core/elem.wast b/test/core/elem.wast
|
||||
index 1ea2b061..f5440e07 100644
|
||||
index 1ea2b061..8eded377 100644
|
||||
--- a/test/core/elem.wast
|
||||
+++ b/test/core/elem.wast
|
||||
@@ -12,10 +12,10 @@
|
||||
(elem 0x0 (i32.const 0) $f $f)
|
||||
(elem 0x000 (offset (i32.const 0)))
|
||||
(elem 0 (offset (i32.const 0)) $f $f)
|
||||
- (elem $t (i32.const 0))
|
||||
- (elem $t (i32.const 0) $f $f)
|
||||
- (elem $t (offset (i32.const 0)))
|
||||
- (elem $t (offset (i32.const 0)) $f $f)
|
||||
+ (elem (i32.const 0))
|
||||
+ (elem (i32.const 0) $f $f)
|
||||
+ (elem (offset (i32.const 0)))
|
||||
+ (elem (offset (i32.const 0)) $f $f)
|
||||
)
|
||||
|
||||
;; Basic use
|
||||
@@ -354,6 +354,7 @@
|
||||
(assert_return (invoke $module1 "call-8") (i32.const 65))
|
||||
(assert_return (invoke $module1 "call-9") (i32.const 66))
|
||||
|
||||
Reference in New Issue
Block a user