@@ -3524,13 +3524,13 @@ LibraryManager.library = {
35243524 // mode are created here and imported by the module.
35253525 // Mark with `__import` so these are usable from native code. This is needed
35263526 // because, by default, only functions can be be imported.
3527- __stack_pointer : "new WebAssembly.Global({'value': '{{{ POINTER_TYPE }}}', 'mutable': true}, {{{ to64(STACK_BASE) }}})" ,
3527+ __stack_pointer : "new WebAssembly.Global({'value': '{{{ POINTER_WASM_TYPE }}}', 'mutable': true}, {{{ to64(STACK_BASE) }}})" ,
35283528 __stack_pointer__import : true ,
35293529 // tell the memory segments where to place themselves
3530- __memory_base : "new WebAssembly.Global({'value': '{{{ POINTER_TYPE }}}', 'mutable': false}, {{{ to64(GLOBAL_BASE) }}})" ,
3530+ __memory_base : "new WebAssembly.Global({'value': '{{{ POINTER_WASM_TYPE }}}', 'mutable': false}, {{{ to64(GLOBAL_BASE) }}})" ,
35313531 __memory_base__import : true ,
35323532 // the wasm backend reserves slot 0 for the NULL function pointer
3533- __table_base : "new WebAssembly.Global({'value': '{{{ POINTER_TYPE }}}', 'mutable': false}, {{{ to64(1) }}})" ,
3533+ __table_base : "new WebAssembly.Global({'value': '{{{ POINTER_WASM_TYPE }}}', 'mutable': false}, {{{ to64(1) }}})" ,
35343534 __table_base__import : true ,
35353535#if MEMORY64
35363536 __table_base32 : 1 ,
@@ -3544,11 +3544,11 @@ LibraryManager.library = {
35443544 __heap_base__import : true ,
35453545#if EXCEPTION_HANDLING
35463546 // In dynamic linking we define tags here and feed them to each module
3547- __cpp_exception : "new WebAssembly.Tag({'parameters': ['{{{ POINTER_TYPE }}}']})" ,
3547+ __cpp_exception : "new WebAssembly.Tag({'parameters': ['{{{ POINTER_WASM_TYPE }}}']})" ,
35483548 __cpp_exception__import : true ,
35493549#endif
35503550#if SUPPORT_LONGJMP == 'wasm'
3551- __c_longjmp : "new WebAssembly.Tag({'parameters': ['{{{ POINTER_TYPE }}}']})" ,
3551+ __c_longjmp : "new WebAssembly.Tag({'parameters': ['{{{ POINTER_WASM_TYPE }}}']})" ,
35523552 __c_longjmp_import : true ,
35533553#endif
35543554#endif
0 commit comments