[webkit-changes] [WebKit/WebKit] b60c30: [JSC] ownPropertyKeys should call JSArray::tryCrea...
Yusuke Suzuki
noreply at github.com
Tue Jan 14 04:32:47 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b60c3001b35436dcc4ba75e89333d3ea539057cd
https://github.com/WebKit/WebKit/commit/b60c3001b35436dcc4ba75e89333d3ea539057cd
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2025-01-14 (Tue, 14 Jan 2025)
Changed paths:
A JSTests/stress/own-property-names-oom.js
M Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
M Source/JavaScriptCore/runtime/JSArray.h
M Source/JavaScriptCore/runtime/JSImmutableButterfly.h
M Source/JavaScriptCore/runtime/ObjectConstructor.cpp
M Source/JavaScriptCore/runtime/ResourceExhaustion.h
M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
Log Message:
-----------
[JSC] ownPropertyKeys should call JSArray::tryCreate instead of JSArray::create
https://bugs.webkit.org/show_bug.cgi?id=221984
rdar://142474442
Reviewed by Yijia Huang.
Make ownPropertyKeys robust against OOM.
* JSTests/stress/own-property-names-oom.js: Added.
(try.func_1_):
* Source/JavaScriptCore/runtime/JSArray.h:
(JSC::JSArray::create):
* Source/JavaScriptCore/runtime/JSImmutableButterfly.h:
(JSC::JSImmutableButterfly::tryCreate):
(JSC::JSImmutableButterfly::create):
* Source/JavaScriptCore/runtime/ObjectConstructor.cpp:
(JSC::ownPropertyKeys):
Canonical link: https://commits.webkit.org/288835@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