зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1311994 - Baldr: remove WebAssembly.validate warning (r=bbouvier)
MozReview-Commit-ID: 5LLDIhjjBep --HG-- extra : rebase_source : 02acf313019fb0e446e252554f5ce3597d646370
This commit is contained in:
Родитель
53e100ab0d
Коммит
3c68877577
|
@ -1548,14 +1548,6 @@ WebAssembly_validate(JSContext* cx, unsigned argc, Value* vp)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (error) {
|
||||
if (!JS_ReportErrorFlagsAndNumberASCII(cx, JSREPORT_WARNING, GetErrorMessage, nullptr,
|
||||
JSMSG_WASM_COMPILE_ERROR, error.get()))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
callArgs.rval().setBoolean(validated);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -24,10 +24,3 @@ assertEq(validate(wasmTextToBinary(`(module (func) (export "run" 0))`)), true);
|
|||
// Feature-testing proof-of-concept.
|
||||
assertEq(validate(wasmTextToBinary(`(module (memory 1) (func (result i32) (current_memory)))`)), true);
|
||||
assertEq(validate(wasmTextToBinary(`(module (memory 1) (func (result i32) (grow_memory (i32.const 42))))`)), true);
|
||||
|
||||
// Enable warning as errors.
|
||||
options("werror");
|
||||
assertErrorMessage(() => validate(wasmTextToBinary(`(module (func) (func) (export "a" 2))`)),
|
||||
WebAssembly.CompileError,
|
||||
/exported function index out of bounds/);
|
||||
options("werror");
|
||||
|
|
Загрузка…
Ссылка в новой задаче