diff --git a/Userland/Libraries/LibJS/Runtime/VM.h b/Userland/Libraries/LibJS/Runtime/VM.h index 579f5dbdc3..5f8c4e1a72 100644 --- a/Userland/Libraries/LibJS/Runtime/VM.h +++ b/Userland/Libraries/LibJS/Runtime/VM.h @@ -107,8 +107,11 @@ public: bool did_reach_stack_space_limit() const { - // Note: the 32 kiB used to be 16 kiB, but that turned out to not be enough with ASAN enabled. +#ifdef HAS_ADDRESS_SANITIZER return m_stack_info.size_free() < 32 * KiB; +#else + return m_stack_info.size_free() < 16 * KiB; +#endif } void push_execution_context(ExecutionContext& context, GlobalObject& global_object)