Bug 1561521 - Tests: Change tests that rely on old test messages. r=lth

The following commits will change test messages for a couple tests, and this
commit fixes the breakage.

Differential Revision: https://phabricator.services.mozilla.com/D85062
This commit is contained in:
Ryan Hunt 2020-08-18 16:58:21 +00:00
Родитель 3b63230f7f
Коммит ff588ab359
3 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -1,4 +1,4 @@
// |jit-test| skip-if: !wasmGcEnabled()
// |jit-test| skip-if: !wasmReftypesEnabled() || !wasmGcEnabled()
load(libdir + "wasm-binary.js");
@ -18,7 +18,7 @@ const invalidRefBlockType = funcBody({locals:[], body:[
0x42,
EndCode,
]});
checkInvalid(invalidRefBlockType, /ref/);
checkInvalid(invalidRefBlockType, /heap type/);
const invalidTooBigRefType = funcBody({locals:[], body:[
BlockCode,
@ -26,4 +26,4 @@ const invalidTooBigRefType = funcBody({locals:[], body:[
varU32(1000000),
EndCode,
]});
checkInvalid(invalidTooBigRefType, /ref/);
checkInvalid(invalidTooBigRefType, /heap type/);

Просмотреть файл

@ -2,7 +2,7 @@
const { CompileError, validate } = WebAssembly;
const UNRECOGNIZED_OPCODE_OR_BAD_TYPE = /unrecognized opcode|(Structure|reference) types not enabled|invalid inline block type|bad type|\(ref T\) types not enabled|Cranelift error in clifFunc/;
const UNRECOGNIZED_OPCODE_OR_BAD_TYPE = /unrecognized opcode|(Structure|reference|gc) types not enabled|invalid heap type|invalid inline block type|bad type|\(ref T\) types not enabled|Cranelift error in clifFunc/;
let simpleTests = [
"(module (func (drop (ref.null any))))",

Просмотреть файл

@ -118,7 +118,7 @@ assertErrorMessage(() => new WebAssembly.Module(
typeCode: I32Code,
elems: [] }])])),
WebAssembly.CompileError,
/segments with element expressions can only contain references/);
/bad type/);
// Test case for bug 1596026: when taking the ref.func of an imported function,
// the value obtained should not be the JS function. This would assert (even in
@ -168,7 +168,7 @@ function checkPassiveElemSegment(mangle, err) {
}
checkPassiveElemSegment("");
checkPassiveElemSegment("type", /segments with element expressions can only contain references/);
checkPassiveElemSegment("type", /bad type/);
checkPassiveElemSegment("ref.func", /failed to read initializer operation/);
checkPassiveElemSegment("end", /failed to read end of initializer expression/);