Ryan Hunt 67f4e6da62 Bug 1757733 - wasm: Don't report warnings from AsmJS compilation, which may be off-main-thread. r=yury
AsmJS compilation may be off the main thread, so we cannot report warnings
to JSContext. wasm::Log may do this if the right pref is on. CompileArgs::
build() uses wasm::Log. AsmJS uses CompileArgs::build(). This commit adds
a separate version of CompileArgs::build() which will not log or report
errors. AsmJS then asserts that only an OOM may be possible here, as we
should ensure a wasm compiler is available before compiling.

Differential Revision: https://phabricator.services.mozilla.com/D141007
2022-03-15 19:48:41 +00:00
..