Fix jsHaveJspi so that it works without Asyncify defined
Change-Id: I3dd2ff16e41faae33c8095d7d8ea538da8c7d4d4 Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io> Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>bb10
parent
123118f829
commit
8ab67c62d0
|
|
@ -364,7 +364,7 @@ void WebPromiseManager::adoptPromise(emscripten::val target, PromiseCallbacks ca
|
|||
|
||||
EM_JS(bool, jsHaveAsyncify, (), { return typeof Asyncify !== "undefined"; });
|
||||
EM_JS(bool, jsHaveJspi, (),
|
||||
{ return !!Asyncify && !!Asyncify.makeAsyncFunction && !!WebAssembly.Function; });
|
||||
{ return typeof Asyncify !== "undefined" && !!Asyncify.makeAsyncFunction && !!WebAssembly.Function; });
|
||||
|
||||
#else
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue