exception_handling.patch 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. diff --git a/test/core/data.wast b/test/core/data.wast
  2. index b1e12397..a0f69676 100644
  3. --- a/test/core/data.wast
  4. +++ b/test/core/data.wast
  5. @@ -312,7 +312,8 @@
  6. "\02\01\41\00\0b" ;; active data segment 0 for memory 1
  7. "\00" ;; empty vec(byte)
  8. )
  9. - "unknown memory 1"
  10. + ;; TODO: restore after supporting multi memory"
  11. + "unknown memory"
  12. )
  13. ;; Data segment with memory index 0 (no memory section)
  14. @@ -334,7 +335,8 @@
  15. "\02\01\41\00\0b" ;; active data segment 0 for memory 1
  16. "\00" ;; empty vec(byte)
  17. )
  18. - "unknown memory 1"
  19. + ;; TODO: restore after supporting multi memory"
  20. + "unknown memory"
  21. )
  22. ;; Data segment with memory index 1 and vec(byte) as above,
  23. @@ -354,7 +356,8 @@
  24. "\20\21\22\23\24\25\26\27\28\29\2a\2b\2c\2d\2e\2f"
  25. "\30\31\32\33\34\35\36\37\38\39\3a\3b\3c\3d"
  26. )
  27. - "unknown memory 1"
  28. + ;; TODO: restore after supporting multi memory"
  29. + "unknown memory"
  30. )
  31. ;; Data segment with memory index 1 and specially crafted vec(byte) after.
  32. @@ -374,7 +377,8 @@
  33. "\20\21\22\23\24\25\26\27\28\29\2a\2b\2c\2d\2e\2f"
  34. "\30\31\32\33\34\35\36\37\38\39\3a\3b\3c\3d"
  35. )
  36. - "unknown memory 1"
  37. + ;; TODO: restore after supporting multi memory"
  38. + "unknown memory"
  39. )
  40. diff --git a/test/core/elem.wast b/test/core/elem.wast
  41. index 4a399eca..3da365e5 100644
  42. --- a/test/core/elem.wast
  43. +++ b/test/core/elem.wast
  44. @@ -594,6 +594,7 @@
  45. (assert_return (invoke $module1 "call-8") (i32.const 65))
  46. (assert_return (invoke $module1 "call-9") (i32.const 66))
  47. +(;
  48. (module $module2
  49. (type $out-i32 (func (result i32)))
  50. (import "module1" "shared-table" (table 10 funcref))
  51. @@ -606,7 +607,9 @@
  52. (assert_return (invoke $module1 "call-7") (i32.const 67))
  53. (assert_return (invoke $module1 "call-8") (i32.const 68))
  54. (assert_return (invoke $module1 "call-9") (i32.const 66))
  55. +;)
  56. +(;
  57. (module $module3
  58. (type $out-i32 (func (result i32)))
  59. (import "module1" "shared-table" (table 10 funcref))
  60. @@ -619,6 +622,7 @@
  61. (assert_return (invoke $module1 "call-7") (i32.const 67))
  62. (assert_return (invoke $module1 "call-8") (i32.const 69))
  63. (assert_return (invoke $module1 "call-9") (i32.const 70))
  64. +;)
  65. ;; Element segments must match element type of table
  66. @@ -651,6 +655,7 @@
  67. ;; Initializing a table with an externref-type element segment
  68. +(;
  69. (module $m
  70. (table $t (export "table") 2 externref)
  71. (func (export "get") (param $i i32) (result externref)
  72. @@ -675,9 +680,11 @@
  73. (assert_return (invoke $m "get" (i32.const 0)) (ref.null extern))
  74. (assert_return (invoke $m "get" (i32.const 1)) (ref.extern 137))
  75. +;)
  76. ;; Initializing a table with imported funcref global
  77. +(;
  78. (module $module4
  79. (func (result i32)
  80. i32.const 42
  81. @@ -698,3 +705,4 @@
  82. )
  83. (assert_return (invoke "call_imported_elem") (i32.const 42))
  84. +;)
  85. diff --git a/test/core/ref_func.wast b/test/core/ref_func.wast
  86. index adb5cb78..6396013b 100644
  87. --- a/test/core/ref_func.wast
  88. +++ b/test/core/ref_func.wast
  89. @@ -4,7 +4,7 @@
  90. (register "M")
  91. (module
  92. - (func $f (import "M" "f") (param i32) (result i32))
  93. + (func $f (param $x i32) (result i32) (local.get $x))
  94. (func $g (param $x i32) (result i32)
  95. (i32.add (local.get $x) (i32.const 1))
  96. )
  97. diff --git a/test/core/table_copy.wast b/test/core/table_copy.wast
  98. index 380e84ee..59230cfb 100644
  99. --- a/test/core/table_copy.wast
  100. +++ b/test/core/table_copy.wast
  101. @@ -14,11 +14,11 @@
  102. (module
  103. (type (func (result i32))) ;; type #0
  104. - (import "a" "ef0" (func (result i32))) ;; index 0
  105. - (import "a" "ef1" (func (result i32)))
  106. - (import "a" "ef2" (func (result i32)))
  107. - (import "a" "ef3" (func (result i32)))
  108. - (import "a" "ef4" (func (result i32))) ;; index 4
  109. + (func (result i32) (i32.const 0)) ;; index 0
  110. + (func (result i32) (i32.const 1))
  111. + (func (result i32) (i32.const 2))
  112. + (func (result i32) (i32.const 3))
  113. + (func (result i32) (i32.const 4)) ;; index 4
  114. (table $t0 30 30 funcref)
  115. (table $t1 30 30 funcref)
  116. (elem (table $t0) (i32.const 2) func 3 1 4 1)
  117. @@ -106,11 +106,11 @@
  118. (module
  119. (type (func (result i32))) ;; type #0
  120. - (import "a" "ef0" (func (result i32))) ;; index 0
  121. - (import "a" "ef1" (func (result i32)))
  122. - (import "a" "ef2" (func (result i32)))
  123. - (import "a" "ef3" (func (result i32)))
  124. - (import "a" "ef4" (func (result i32))) ;; index 4
  125. + (func (result i32) (i32.const 0)) ;; index 0
  126. + (func (result i32) (i32.const 1))
  127. + (func (result i32) (i32.const 2))
  128. + (func (result i32) (i32.const 3))
  129. + (func (result i32) (i32.const 4)) ;; index 4
  130. (table $t0 30 30 funcref)
  131. (table $t1 30 30 funcref)
  132. (elem (table $t0) (i32.const 2) func 3 1 4 1)
  133. @@ -198,11 +198,11 @@
  134. (module
  135. (type (func (result i32))) ;; type #0
  136. - (import "a" "ef0" (func (result i32))) ;; index 0
  137. - (import "a" "ef1" (func (result i32)))
  138. - (import "a" "ef2" (func (result i32)))
  139. - (import "a" "ef3" (func (result i32)))
  140. - (import "a" "ef4" (func (result i32))) ;; index 4
  141. + (func (result i32) (i32.const 0)) ;; index 0
  142. + (func (result i32) (i32.const 1))
  143. + (func (result i32) (i32.const 2))
  144. + (func (result i32) (i32.const 3))
  145. + (func (result i32) (i32.const 4)) ;; index 4
  146. (table $t0 30 30 funcref)
  147. (table $t1 30 30 funcref)
  148. (elem (table $t0) (i32.const 2) func 3 1 4 1)
  149. @@ -290,11 +290,11 @@
  150. (module
  151. (type (func (result i32))) ;; type #0
  152. - (import "a" "ef0" (func (result i32))) ;; index 0
  153. - (import "a" "ef1" (func (result i32)))
  154. - (import "a" "ef2" (func (result i32)))
  155. - (import "a" "ef3" (func (result i32)))
  156. - (import "a" "ef4" (func (result i32))) ;; index 4
  157. + (func (result i32) (i32.const 0)) ;; index 0
  158. + (func (result i32) (i32.const 1))
  159. + (func (result i32) (i32.const 2))
  160. + (func (result i32) (i32.const 3))
  161. + (func (result i32) (i32.const 4)) ;; index 4
  162. (table $t0 30 30 funcref)
  163. (table $t1 30 30 funcref)
  164. (elem (table $t0) (i32.const 2) func 3 1 4 1)
  165. @@ -382,11 +382,11 @@
  166. (module
  167. (type (func (result i32))) ;; type #0
  168. - (import "a" "ef0" (func (result i32))) ;; index 0
  169. - (import "a" "ef1" (func (result i32)))
  170. - (import "a" "ef2" (func (result i32)))
  171. - (import "a" "ef3" (func (result i32)))
  172. - (import "a" "ef4" (func (result i32))) ;; index 4
  173. + (func (result i32) (i32.const 0)) ;; index 0
  174. + (func (result i32) (i32.const 1))
  175. + (func (result i32) (i32.const 2))
  176. + (func (result i32) (i32.const 3))
  177. + (func (result i32) (i32.const 4)) ;; index 4
  178. (table $t0 30 30 funcref)
  179. (table $t1 30 30 funcref)
  180. (elem (table $t0) (i32.const 2) func 3 1 4 1)
  181. @@ -474,11 +474,11 @@
  182. (module
  183. (type (func (result i32))) ;; type #0
  184. - (import "a" "ef0" (func (result i32))) ;; index 0
  185. - (import "a" "ef1" (func (result i32)))
  186. - (import "a" "ef2" (func (result i32)))
  187. - (import "a" "ef3" (func (result i32)))
  188. - (import "a" "ef4" (func (result i32))) ;; index 4
  189. + (func (result i32) (i32.const 0)) ;; index 0
  190. + (func (result i32) (i32.const 1))
  191. + (func (result i32) (i32.const 2))
  192. + (func (result i32) (i32.const 3))
  193. + (func (result i32) (i32.const 4)) ;; index 4
  194. (table $t0 30 30 funcref)
  195. (table $t1 30 30 funcref)
  196. (elem (table $t0) (i32.const 2) func 3 1 4 1)
  197. @@ -566,11 +566,11 @@
  198. (module
  199. (type (func (result i32))) ;; type #0
  200. - (import "a" "ef0" (func (result i32))) ;; index 0
  201. - (import "a" "ef1" (func (result i32)))
  202. - (import "a" "ef2" (func (result i32)))
  203. - (import "a" "ef3" (func (result i32)))
  204. - (import "a" "ef4" (func (result i32))) ;; index 4
  205. + (func (result i32) (i32.const 0)) ;; index 0
  206. + (func (result i32) (i32.const 1))
  207. + (func (result i32) (i32.const 2))
  208. + (func (result i32) (i32.const 3))
  209. + (func (result i32) (i32.const 4)) ;; index 4
  210. (table $t0 30 30 funcref)
  211. (table $t1 30 30 funcref)
  212. (elem (table $t0) (i32.const 2) func 3 1 4 1)
  213. @@ -658,11 +658,11 @@
  214. (module
  215. (type (func (result i32))) ;; type #0
  216. - (import "a" "ef0" (func (result i32))) ;; index 0
  217. - (import "a" "ef1" (func (result i32)))
  218. - (import "a" "ef2" (func (result i32)))
  219. - (import "a" "ef3" (func (result i32)))
  220. - (import "a" "ef4" (func (result i32))) ;; index 4
  221. + (func (result i32) (i32.const 0)) ;; index 0
  222. + (func (result i32) (i32.const 1))
  223. + (func (result i32) (i32.const 2))
  224. + (func (result i32) (i32.const 3))
  225. + (func (result i32) (i32.const 4)) ;; index 4
  226. (table $t0 30 30 funcref)
  227. (table $t1 30 30 funcref)
  228. (elem (table $t0) (i32.const 2) func 3 1 4 1)
  229. @@ -750,11 +750,11 @@
  230. (module
  231. (type (func (result i32))) ;; type #0
  232. - (import "a" "ef0" (func (result i32))) ;; index 0
  233. - (import "a" "ef1" (func (result i32)))
  234. - (import "a" "ef2" (func (result i32)))
  235. - (import "a" "ef3" (func (result i32)))
  236. - (import "a" "ef4" (func (result i32))) ;; index 4
  237. + (func (result i32) (i32.const 0)) ;; index 0
  238. + (func (result i32) (i32.const 1))
  239. + (func (result i32) (i32.const 2))
  240. + (func (result i32) (i32.const 3))
  241. + (func (result i32) (i32.const 4)) ;; index 4
  242. (table $t0 30 30 funcref)
  243. (table $t1 30 30 funcref)
  244. (elem (table $t0) (i32.const 2) func 3 1 4 1)
  245. @@ -842,11 +842,11 @@
  246. (module
  247. (type (func (result i32))) ;; type #0
  248. - (import "a" "ef0" (func (result i32))) ;; index 0
  249. - (import "a" "ef1" (func (result i32)))
  250. - (import "a" "ef2" (func (result i32)))
  251. - (import "a" "ef3" (func (result i32)))
  252. - (import "a" "ef4" (func (result i32))) ;; index 4
  253. + (func (result i32) (i32.const 0)) ;; index 0
  254. + (func (result i32) (i32.const 1))
  255. + (func (result i32) (i32.const 2))
  256. + (func (result i32) (i32.const 3))
  257. + (func (result i32) (i32.const 4)) ;; index 4
  258. (table $t0 30 30 funcref)
  259. (table $t1 30 30 funcref)
  260. (elem (table $t1) (i32.const 2) func 3 1 4 1)
  261. @@ -934,11 +934,11 @@
  262. (module
  263. (type (func (result i32))) ;; type #0
  264. - (import "a" "ef0" (func (result i32))) ;; index 0
  265. - (import "a" "ef1" (func (result i32)))
  266. - (import "a" "ef2" (func (result i32)))
  267. - (import "a" "ef3" (func (result i32)))
  268. - (import "a" "ef4" (func (result i32))) ;; index 4
  269. + (func (result i32) (i32.const 0)) ;; index 0
  270. + (func (result i32) (i32.const 1))
  271. + (func (result i32) (i32.const 2))
  272. + (func (result i32) (i32.const 3))
  273. + (func (result i32) (i32.const 4)) ;; index 4
  274. (table $t0 30 30 funcref)
  275. (table $t1 30 30 funcref)
  276. (elem (table $t1) (i32.const 2) func 3 1 4 1)
  277. @@ -1026,11 +1026,11 @@
  278. (module
  279. (type (func (result i32))) ;; type #0
  280. - (import "a" "ef0" (func (result i32))) ;; index 0
  281. - (import "a" "ef1" (func (result i32)))
  282. - (import "a" "ef2" (func (result i32)))
  283. - (import "a" "ef3" (func (result i32)))
  284. - (import "a" "ef4" (func (result i32))) ;; index 4
  285. + (func (result i32) (i32.const 0)) ;; index 0
  286. + (func (result i32) (i32.const 1))
  287. + (func (result i32) (i32.const 2))
  288. + (func (result i32) (i32.const 3))
  289. + (func (result i32) (i32.const 4)) ;; index 4
  290. (table $t0 30 30 funcref)
  291. (table $t1 30 30 funcref)
  292. (elem (table $t1) (i32.const 2) func 3 1 4 1)
  293. @@ -1118,11 +1118,11 @@
  294. (module
  295. (type (func (result i32))) ;; type #0
  296. - (import "a" "ef0" (func (result i32))) ;; index 0
  297. - (import "a" "ef1" (func (result i32)))
  298. - (import "a" "ef2" (func (result i32)))
  299. - (import "a" "ef3" (func (result i32)))
  300. - (import "a" "ef4" (func (result i32))) ;; index 4
  301. + (func (result i32) (i32.const 0)) ;; index 0
  302. + (func (result i32) (i32.const 1))
  303. + (func (result i32) (i32.const 2))
  304. + (func (result i32) (i32.const 3))
  305. + (func (result i32) (i32.const 4)) ;; index 4
  306. (table $t0 30 30 funcref)
  307. (table $t1 30 30 funcref)
  308. (elem (table $t1) (i32.const 2) func 3 1 4 1)
  309. @@ -1210,11 +1210,11 @@
  310. (module
  311. (type (func (result i32))) ;; type #0
  312. - (import "a" "ef0" (func (result i32))) ;; index 0
  313. - (import "a" "ef1" (func (result i32)))
  314. - (import "a" "ef2" (func (result i32)))
  315. - (import "a" "ef3" (func (result i32)))
  316. - (import "a" "ef4" (func (result i32))) ;; index 4
  317. + (func (result i32) (i32.const 0)) ;; index 0
  318. + (func (result i32) (i32.const 1))
  319. + (func (result i32) (i32.const 2))
  320. + (func (result i32) (i32.const 3))
  321. + (func (result i32) (i32.const 4)) ;; index 4
  322. (table $t0 30 30 funcref)
  323. (table $t1 30 30 funcref)
  324. (elem (table $t1) (i32.const 2) func 3 1 4 1)
  325. @@ -1302,11 +1302,11 @@
  326. (module
  327. (type (func (result i32))) ;; type #0
  328. - (import "a" "ef0" (func (result i32))) ;; index 0
  329. - (import "a" "ef1" (func (result i32)))
  330. - (import "a" "ef2" (func (result i32)))
  331. - (import "a" "ef3" (func (result i32)))
  332. - (import "a" "ef4" (func (result i32))) ;; index 4
  333. + (func (result i32) (i32.const 0)) ;; index 0
  334. + (func (result i32) (i32.const 1))
  335. + (func (result i32) (i32.const 2))
  336. + (func (result i32) (i32.const 3))
  337. + (func (result i32) (i32.const 4)) ;; index 4
  338. (table $t0 30 30 funcref)
  339. (table $t1 30 30 funcref)
  340. (elem (table $t1) (i32.const 2) func 3 1 4 1)
  341. @@ -1394,11 +1394,11 @@
  342. (module
  343. (type (func (result i32))) ;; type #0
  344. - (import "a" "ef0" (func (result i32))) ;; index 0
  345. - (import "a" "ef1" (func (result i32)))
  346. - (import "a" "ef2" (func (result i32)))
  347. - (import "a" "ef3" (func (result i32)))
  348. - (import "a" "ef4" (func (result i32))) ;; index 4
  349. + (func (result i32) (i32.const 0)) ;; index 0
  350. + (func (result i32) (i32.const 1))
  351. + (func (result i32) (i32.const 2))
  352. + (func (result i32) (i32.const 3))
  353. + (func (result i32) (i32.const 4)) ;; index 4
  354. (table $t0 30 30 funcref)
  355. (table $t1 30 30 funcref)
  356. (elem (table $t1) (i32.const 2) func 3 1 4 1)
  357. @@ -1486,11 +1486,11 @@
  358. (module
  359. (type (func (result i32))) ;; type #0
  360. - (import "a" "ef0" (func (result i32))) ;; index 0
  361. - (import "a" "ef1" (func (result i32)))
  362. - (import "a" "ef2" (func (result i32)))
  363. - (import "a" "ef3" (func (result i32)))
  364. - (import "a" "ef4" (func (result i32))) ;; index 4
  365. + (func (result i32) (i32.const 0)) ;; index 0
  366. + (func (result i32) (i32.const 1))
  367. + (func (result i32) (i32.const 2))
  368. + (func (result i32) (i32.const 3))
  369. + (func (result i32) (i32.const 4)) ;; index 4
  370. (table $t0 30 30 funcref)
  371. (table $t1 30 30 funcref)
  372. (elem (table $t1) (i32.const 2) func 3 1 4 1)
  373. @@ -1578,11 +1578,11 @@
  374. (module
  375. (type (func (result i32))) ;; type #0
  376. - (import "a" "ef0" (func (result i32))) ;; index 0
  377. - (import "a" "ef1" (func (result i32)))
  378. - (import "a" "ef2" (func (result i32)))
  379. - (import "a" "ef3" (func (result i32)))
  380. - (import "a" "ef4" (func (result i32))) ;; index 4
  381. + (func (result i32) (i32.const 0)) ;; index 0
  382. + (func (result i32) (i32.const 1))
  383. + (func (result i32) (i32.const 2))
  384. + (func (result i32) (i32.const 3))
  385. + (func (result i32) (i32.const 4)) ;; index 4
  386. (table $t0 30 30 funcref)
  387. (table $t1 30 30 funcref)
  388. (elem (table $t1) (i32.const 2) func 3 1 4 1)
  389. diff --git a/test/core/table_init.wast b/test/core/table_init.wast
  390. index 0b2d26f7..3c595e5b 100644
  391. --- a/test/core/table_init.wast
  392. +++ b/test/core/table_init.wast
  393. @@ -14,11 +14,11 @@
  394. (module
  395. (type (func (result i32))) ;; type #0
  396. - (import "a" "ef0" (func (result i32))) ;; index 0
  397. - (import "a" "ef1" (func (result i32)))
  398. - (import "a" "ef2" (func (result i32)))
  399. - (import "a" "ef3" (func (result i32)))
  400. - (import "a" "ef4" (func (result i32))) ;; index 4
  401. + (func (result i32) (i32.const 0)) ;; index 0
  402. + (func (result i32) (i32.const 1))
  403. + (func (result i32) (i32.const 2))
  404. + (func (result i32) (i32.const 3))
  405. + (func (result i32) (i32.const 4)) ;; index 4
  406. (table $t0 30 30 funcref)
  407. (table $t1 30 30 funcref)
  408. (elem (table $t0) (i32.const 2) func 3 1 4 1)
  409. @@ -72,11 +72,11 @@
  410. (module
  411. (type (func (result i32))) ;; type #0
  412. - (import "a" "ef0" (func (result i32))) ;; index 0
  413. - (import "a" "ef1" (func (result i32)))
  414. - (import "a" "ef2" (func (result i32)))
  415. - (import "a" "ef3" (func (result i32)))
  416. - (import "a" "ef4" (func (result i32))) ;; index 4
  417. + (func (result i32) (i32.const 0)) ;; index 0
  418. + (func (result i32) (i32.const 1))
  419. + (func (result i32) (i32.const 2))
  420. + (func (result i32) (i32.const 3))
  421. + (func (result i32) (i32.const 4)) ;; index 4
  422. (table $t0 30 30 funcref)
  423. (table $t1 30 30 funcref)
  424. (elem (table $t0) (i32.const 2) func 3 1 4 1)
  425. @@ -130,11 +130,11 @@
  426. (module
  427. (type (func (result i32))) ;; type #0
  428. - (import "a" "ef0" (func (result i32))) ;; index 0
  429. - (import "a" "ef1" (func (result i32)))
  430. - (import "a" "ef2" (func (result i32)))
  431. - (import "a" "ef3" (func (result i32)))
  432. - (import "a" "ef4" (func (result i32))) ;; index 4
  433. + (func (result i32) (i32.const 0)) ;; index 0
  434. + (func (result i32) (i32.const 1))
  435. + (func (result i32) (i32.const 2))
  436. + (func (result i32) (i32.const 3))
  437. + (func (result i32) (i32.const 4)) ;; index 4
  438. (table $t0 30 30 funcref)
  439. (table $t1 30 30 funcref)
  440. (elem (table $t0) (i32.const 2) func 3 1 4 1)
  441. @@ -196,11 +196,11 @@
  442. (module
  443. (type (func (result i32))) ;; type #0
  444. - (import "a" "ef0" (func (result i32))) ;; index 0
  445. - (import "a" "ef1" (func (result i32)))
  446. - (import "a" "ef2" (func (result i32)))
  447. - (import "a" "ef3" (func (result i32)))
  448. - (import "a" "ef4" (func (result i32))) ;; index 4
  449. + (func (result i32) (i32.const 0)) ;; index 0
  450. + (func (result i32) (i32.const 1))
  451. + (func (result i32) (i32.const 2))
  452. + (func (result i32) (i32.const 3))
  453. + (func (result i32) (i32.const 4)) ;; index 4
  454. (table $t0 30 30 funcref)
  455. (table $t1 30 30 funcref)
  456. (elem (table $t1) (i32.const 2) func 3 1 4 1)
  457. @@ -254,11 +254,11 @@
  458. (module
  459. (type (func (result i32))) ;; type #0
  460. - (import "a" "ef0" (func (result i32))) ;; index 0
  461. - (import "a" "ef1" (func (result i32)))
  462. - (import "a" "ef2" (func (result i32)))
  463. - (import "a" "ef3" (func (result i32)))
  464. - (import "a" "ef4" (func (result i32))) ;; index 4
  465. + (func (result i32) (i32.const 0)) ;; index 0
  466. + (func (result i32) (i32.const 1))
  467. + (func (result i32) (i32.const 2))
  468. + (func (result i32) (i32.const 3))
  469. + (func (result i32) (i32.const 4)) ;; index 4
  470. (table $t0 30 30 funcref)
  471. (table $t1 30 30 funcref)
  472. (elem (table $t1) (i32.const 2) func 3 1 4 1)
  473. @@ -312,11 +312,11 @@
  474. (module
  475. (type (func (result i32))) ;; type #0
  476. - (import "a" "ef0" (func (result i32))) ;; index 0
  477. - (import "a" "ef1" (func (result i32)))
  478. - (import "a" "ef2" (func (result i32)))
  479. - (import "a" "ef3" (func (result i32)))
  480. - (import "a" "ef4" (func (result i32))) ;; index 4
  481. + (func (result i32) (i32.const 0)) ;; index 0
  482. + (func (result i32) (i32.const 1))
  483. + (func (result i32) (i32.const 2))
  484. + (func (result i32) (i32.const 3))
  485. + (func (result i32) (i32.const 4)) ;; index 4
  486. (table $t0 30 30 funcref)
  487. (table $t1 30 30 funcref)
  488. (elem (table $t1) (i32.const 2) func 3 1 4 1)
  489. diff --git a/test/core/try_catch.wast b/test/core/try_catch.wast
  490. index 2a0e9ff6..f243489d 100644
  491. --- a/test/core/try_catch.wast
  492. +++ b/test/core/try_catch.wast
  493. @@ -203,7 +203,6 @@
  494. (assert_return (invoke "catch-param-i32" (i32.const 5)) (i32.const 5))
  495. -(assert_return (invoke "catch-imported") (i32.const 2))
  496. (assert_return (invoke "catchless-try" (i32.const 0)) (i32.const 0))
  497. (assert_return (invoke "catchless-try" (i32.const 1)) (i32.const 1))
  498. @@ -231,7 +230,6 @@
  499. )
  500. )
  501. -(assert_return (invoke "imported-mismatch") (i32.const 3))
  502. (assert_malformed
  503. (module quote "(module (func (catch_all)))")