зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1219821 - remove static failure, make it dynamic r=arai a=me
CLOSED TREE --HG-- extra : commitid : GIuP6D7vFGh
This commit is contained in:
Родитель
13f20dd668
Коммит
6b472ea07a
|
@ -8153,7 +8153,9 @@ CheckModule(ExclusiveContext* cx, AsmJSParser& parser, ParseNode* stmtList,
|
|||
m.startFunctionBodies();
|
||||
|
||||
#if !defined(ENABLE_SHARED_ARRAY_BUFFER)
|
||||
MOZ_ASSERT(!m.module().hasArrayView() || !m.module().isSharedView());
|
||||
if (m.module().hasArrayView() && m.module().isSharedView())
|
||||
return m.failOffset(m.parser().tokenStream.currentToken().pos.begin,
|
||||
"shared views not supported by this build");
|
||||
#endif
|
||||
|
||||
ScopedJSDeletePtr<ModuleCompileResults> mcd;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
// Note code is not run, so the only issue here is whether it compiles
|
||||
// properly as asm.js.
|
||||
|
||||
if (!isAsmJSCompilationAvailable())
|
||||
if (!this.SharedArrayBuffer || !isAsmJSCompilationAvailable())
|
||||
quit(0);
|
||||
|
||||
function module_a(stdlib, foreign, heap) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче