mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 14:30:43 +00:00

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