We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a8f7f commit cf81dbeCopy full SHA for cf81dbe
src/library_async.js
@@ -40,6 +40,9 @@ addToLibrary({
40
instrumentWasmImports(imports) {
41
#if ASYNCIFY_DEBUG
42
dbg('asyncify instrumenting imports');
43
+#endif
44
+#if ASSERTIONS && ASYNCIFY == 2
45
+ assert('Suspender' in WebAssembly, 'JSPI not supported by current environment. Perhaps it needs to be enabled via flags?');
46
#endif
47
var importPattern = {{{ new RegExp(`^(${ASYNCIFY_IMPORTS_EXCEPT_JS_LIBS.map(x => x.split('.')[1]).join('|').replace(/\*/g, '.*')})$`) }}};
48
0 commit comments