diff --git a/src/worker.js b/src/worker.js index 3a79f5ab89a1f..056e934b9730c 100644 --- a/src/worker.js +++ b/src/worker.js @@ -183,7 +183,7 @@ this.onmessage = function(e) { var max = e.data.stackBase + e.data.stackSize; var top = e.data.stackBase; #endif - {{{ makeAsmExportAndGlobalAssignTargetInPthread('STACK_BASE') }}} = e.data.stackBase; + {{{ makeAsmExportAndGlobalAssignTargetInPthread('STACK_BASE') }}} = top; {{{ makeAsmExportAndGlobalAssignTargetInPthread('STACKTOP') }}} = top; {{{ makeAsmExportAndGlobalAssignTargetInPthread('STACK_MAX') }}} = max; #if ASSERTIONS @@ -194,7 +194,6 @@ this.onmessage = function(e) { #if WASM_BACKEND assert(max === e.data.stackBase); assert(top > max); - assert(e.data.stackBase == max); #else assert(max > e.data.stackBase); assert(max > top);