We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a41250b commit c13c1c7Copy full SHA for c13c1c7
emscripten.py
@@ -932,7 +932,10 @@ def fix_item(item):
932
if item == '0': return bad if not newline else (bad + '\n')
933
if item not in metadata['implementedFunctions']:
934
# this is imported into asm, we must wrap it
935
- code = item + '(' + coerced_params + ')'
+ call_ident = item
936
+ if call_ident in metadata['redirects']: call_ident = metadata['redirects'][call_ident]
937
+ if not call_ident.startswith('_') and not call_ident.startswith('Math_'): call_ident = '_' + call_ident
938
+ code = call_ident + '(' + coerced_params + ')'
939
if sig[0] != 'v':
940
code = 'return ' + shared.JS.make_coercion(code, sig[0], settings)
941
code += ';'
0 commit comments