diff --git a/src/library_async.js b/src/library_async.js index 9327bc3b495ff..82a2be73643a1 100644 --- a/src/library_async.js +++ b/src/library_async.js @@ -123,7 +123,7 @@ addToLibrary({ #endif ret[x] = (...args) => { #if ASYNCIFY_DEBUG >= 2 - dbg(`ASYNCIFY: ${' '.repeat(Asyncify.exportCallStack.length} try ${x}`); + dbg(`ASYNCIFY: ${' '.repeat(Asyncify.exportCallStack.length)} try ${x}`); #endif #if ASYNCIFY == 1 Asyncify.exportCallStack.push(x); @@ -254,7 +254,7 @@ addToLibrary({ setDataRewindFunc(ptr) { var bottomOfCallStack = Asyncify.exportCallStack[0]; #if ASYNCIFY_DEBUG >= 2 - dbg('ASYNCIFY: setDataRewindFunc('+ptr+'), bottomOfCallStack is', bottomOfCallStack, new Error().stack); + dbg(`ASYNCIFY: setDataRewindFunc(${ptr}), bottomOfCallStack is`, bottomOfCallStack, new Error().stack); #endif var rewindId = Asyncify.getCallStackId(bottomOfCallStack); {{{ makeSetValue('ptr', C_STRUCTS.asyncify_data_s.rewind_id, 'rewindId', 'i32') }}}; diff --git a/test/test_other.py b/test/test_other.py index 7ec4fa2540284..78da8b5be5d49 100644 --- a/test/test_other.py +++ b/test/test_other.py @@ -10776,7 +10776,7 @@ def test_asyncify_advise(self): self.assertContained('[asyncify] i can', out) def test_asyncify_stack_overflow(self): - self.emcc_args = ['-sASYNCIFY', '-sASYNCIFY_STACK_SIZE=4'] + self.emcc_args = ['-sASYNCIFY', '-sASYNCIFY_STACK_SIZE=4', '-sASYNCIFY_DEBUG=2'] # The unreachable error on small stack sizes is not super-helpful. Try at # least to hint at increasing the stack size.