Skip to content

Commit

Permalink
don't add maxHeapOverride option
Browse files Browse the repository at this point in the history
  • Loading branch information
Birch-san committed Jan 8, 2025
1 parent 46214c7 commit 79c1681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion box2d3-wasm/shell/modify_emscripten_mjs.awk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ BEGIN { found1=0; found2=0; found3=0; found4=0 }
!found1 && $0 ~ /^async function\(moduleArg = \{\}\) \{$/ {
print $0
print " moduleArg = {pthreadCount: globalThis.navigator?.hardwareConcurrency ?? 4, sharedMemEnabled:true, ...moduleArg};"
print " const {pthreadCount, sharedMemEnabled, maxHeapOverride} = moduleArg;"
print " const {pthreadCount, sharedMemEnabled} = moduleArg;"
found1=1
next
}
Expand Down

0 comments on commit 79c1681

Please sign in to comment.