Add stack overflow check in ProxyObject::ownPropertyKeys

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2026-05-01 22:02:14 +09:00 committed by MuHong Byun
commit 2bbd27caac

View file

@ -472,6 +472,8 @@ ObjectHasPropertyResult ProxyObject::hasProperty(ExecutionState& state, const Ob
Object::OwnPropertyKeyVector ProxyObject::ownPropertyKeys(ExecutionState& state)
{
CHECK_STACK_OVERFLOW(state);
// https://www.ecma-international.org/ecma-262/6.0/#sec-proxy-object-internal-methods-and-internal-slots-ownpropertykeys
auto strings = &state.context()->staticStrings();