Skip to content

Commit 60e2d20

Browse files
committed
Don't check the stack pointer on WASI
1 parent bdde91e commit 60e2d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ tstate_set_stack(PyThreadState *tstate,
465465
assert(ts->c_stack_soft_limit < ts->c_stack_top);
466466

467467
// Test the stack pointer
468-
#ifndef NDEBUG
468+
#if !defined(NDEBUG) && !defined(__wasi__)
469469
uintptr_t here_addr = _Py_get_machine_stack_pointer();
470470
assert(ts->c_stack_soft_limit < here_addr);
471471
assert(here_addr < ts->c_stack_top);

0 commit comments

Comments
 (0)