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 e0bd10a commit 60f70daCopy full SHA for 60f70da
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 must be enabled.');
46
#endif
47
var importPattern = {{{ new RegExp(`^(${ASYNCIFY_IMPORTS_EXCEPT_JS_LIBS.map(x => x.split('.')[1]).join('|').replace(/\*/g, '.*')})$`) }}};
48
0 commit comments