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 dc14d80 commit 46a922eCopy full SHA for 46a922e
src/library_async.js
@@ -458,7 +458,8 @@ addToLibrary({
458
#if ASYNCIFY_DEBUG
459
dbg('asyncify: returnPromiseOnSuspend for', original);
460
#endif
461
- var type = WebAssembly.Function.type(original);
+ // TODO: remove `WebAssembly.Function.type` call when the new API is ready on all the testers.
462
+ var type = original.type ? original.type() : WebAssembly.Function.type(original);
463
var parameters = type.parameters;
464
var results = type.results;
465
#if ASSERTIONS
0 commit comments