Bug 1624592 - Actually fix gc/disabled.js. r?lth draft
authorRyan Hunt <rhunt@eqrion.net>
Fri, 27 Mar 2020 03:08:05 +0000
changeset 2725566 69fbaf310d444075e33f953e5c114a1a52c2a29e
parent 2725565 f388fb1fdebf7680cede4467824c1f6555307f7e
child 2725567 750dbc5751479b2492d26ec9d0d69afc47602750
child 2725568 f6801233217c97e318928d9a50f075f975fe93bd
push id510263
push usermalexandru@mozilla.com
push dateFri, 27 Mar 2020 09:57:42 +0000
treeherdertry@750dbc575147 [default view] [failures only]
reviewerslth
bugs1624592
milestone76.0a1
Bug 1624592 - Actually fix gc/disabled.js. r?lth Differential Revision: https://phabricator.services.mozilla.com/D68501
js/src/jit-test/tests/wasm/gc/disabled.js
--- a/js/src/jit-test/tests/wasm/gc/disabled.js
+++ b/js/src/jit-test/tests/wasm/gc/disabled.js
@@ -5,19 +5,19 @@ const { CompileError, validate } = WebAs
 const UNRECOGNIZED_OPCODE_OR_BAD_TYPE = /unrecognized opcode|(Structure|reference) types not enabled|invalid inline block type|bad type/;
 
 let simpleTests = [
     "(module (func (drop (ref.null))))",
     "(module (func $test (local anyref)))",
     "(module (func $test (param anyref)))",
     "(module (func $test (result anyref) (ref.null)))",
     "(module (func $test (block (result anyref) (unreachable)) unreachable))",
-    "(module (func $test (local anyref) (result i32) (ref.is_null (local.get 0))))",
-    `(module (import "a" "b" (param anyref)))`,
-    `(module (import "a" "b" (result anyref)))`,
+    "(module (func $test (result i32) (local anyref) (ref.is_null (local.get 0))))",
+    `(module (import "a" "b" (func (param anyref))))`,
+    `(module (import "a" "b" (func (result anyref))))`,
     `(module (type $s (struct)))`,
 ];
 
 // Test that use of reference-types or structs fails when
 // reference-types is disabled.
 
 for (let src of simpleTests) {
     let bin = wasmTextToBinary(src);