[webkit-changes] [WebKit/WebKit] 3b8e40: [JSC] Make JSPropertyNameEnumerator allocation robust

Yusuke Suzuki noreply at github.com
Wed Jan 15 13:55:40 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3b8e40a89941090f0124f81534f368b9d172bf32
      https://github.com/WebKit/WebKit/commit/3b8e40a89941090f0124f81534f368b9d172bf32
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2025-01-15 (Wed, 15 Jan 2025)

  Changed paths:
    A JSTests/stress/enumerator-oom.js
    M Source/JavaScriptCore/runtime/JSPropertyNameEnumerator.cpp
    M Source/JavaScriptCore/runtime/JSPropertyNameEnumerator.h

  Log Message:
  -----------
  [JSC] Make JSPropertyNameEnumerator allocation robust
https://bugs.webkit.org/show_bug.cgi?id=286013
rdar://142972697

Reviewed by Justin Michaud.

This patch makes JSPropertyNameEnumerator allocation robust against OOM.

* JSTests/stress/enumerator-oom.js: Added.
(func_1_):
* Source/JavaScriptCore/runtime/JSPropertyNameEnumerator.cpp:
(JSC::JSPropertyNameEnumerator::tryCreate):
(JSC::JSPropertyNameEnumerator::create): Deleted.
* Source/JavaScriptCore/runtime/JSPropertyNameEnumerator.h:
(JSC::propertyNameEnumerator):

Canonical link: https://commits.webkit.org/288964@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list