Skip to content

Commit 2e02d0e

Browse files
authored
Remove unnecessary MEMORY64 block (#18209)
The only reason this might be useful is of the EM_ASM block happens to return a bigint, which, in general, should not be that case.
1 parent 6b73c17 commit 2e02d0e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/library.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,11 +2979,7 @@ mergeInto(LibraryManager.library, {
29792979
#if ASSERTIONS
29802980
if (!ASM_CONSTS.hasOwnProperty(code)) abort('No EM_ASM constant found at address ' + code);
29812981
#endif
2982-
#if MEMORY64
2983-
return Number(ASM_CONSTS[code].apply(null, args));
2984-
#else
29852982
return ASM_CONSTS[code].apply(null, args);
2986-
#endif
29872983
},
29882984

29892985
emscripten_asm_const_int__sig: 'ippp',

0 commit comments

Comments
 (0)