Skip to content

Commit c2bccd0

Browse files
committed
gh-121698 Use updated WebAssembly type reflection proposal
1 parent e6264b4 commit c2bccd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/emscripten_trampoline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ EM_JS(int, _PyEM_CountFuncParams, (PyCFunctionWithKeywords func),
4343
if (n !== undefined) {
4444
return n;
4545
}
46-
n = WebAssembly.Function.type(wasmTable.get(func)).parameters.length;
46+
n = wasmTable.get(func).type().parameters.length;
4747
_PyEM_CountFuncParams.cache.set(func, n);
4848
return n;
4949
}

0 commit comments

Comments
 (0)