wasm: disable asyncify
Emscripten does not support EM_JS from side modules Change-Id: I9c29d112fc0a5ab7830e1cadd0af77829c69d0a9 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
This commit is contained in:
parent
ef3aaa5edd
commit
43cda7807b
@ -295,8 +295,16 @@ void WebPromiseManager::adoptPromise(emscripten::val target, PromiseCallbacks ca
|
|||||||
registerPromise(std::move(allocation), std::move(callbacks));
|
registerPromise(std::move(allocation), std::move(callbacks));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
#if defined(QT_STATIC)
|
||||||
|
|
||||||
EM_JS(bool, jsHaveAsyncify, (), { return typeof Asyncify !== "undefined"; });
|
EM_JS(bool, jsHaveAsyncify, (), { return typeof Asyncify !== "undefined"; });
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
bool jsHaveAsyncify() { return false; }
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
ArrayBuffer::ArrayBuffer(uint32_t size)
|
ArrayBuffer::ArrayBuffer(uint32_t size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user