Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4b7a49ae210b8b428eef19e382d8246568a13f33
      
https://github.com/WebKit/WebKit/commit/4b7a49ae210b8b428eef19e382d8246568a13f33
  Author: Devin Rousso <[email protected]>
  Date:   2026-06-30 (Tue, 30 Jun 2026)

  Changed paths:
    M LayoutTests/inspector/runtime/getDisplayableProperties-expected.txt
    M LayoutTests/inspector/runtime/getProperties-expected.txt
    M Source/JavaScriptCore/inspector/InjectedScriptSource.js
    M Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp
    M Source/JavaScriptCore/inspector/JSInjectedScriptHost.h
    M Source/JavaScriptCore/inspector/JSInjectedScriptHostPrototype.cpp

  Log Message:
  -----------
  Web Inspector: Support ES2022 Private Methods
https://bugs.webkit.org/show_bug.cgi?id=235859
<rdar://problem/88527162>

Reviewed by Yusuke Suzuki.

Unlike private fields that live as own-properties, private methods/accessors 
instead live in the class lexical scope behind a private brand.

In order for Web Inspector to display them, they have to be gathered from the 
class scope of the object's class (and ancestor superclasses).

* Source/JavaScriptCore/inspector/InjectedScriptSource.js:
(let.InjectedScript.prototype._forEachPropertyDescriptor):
* Source/JavaScriptCore/inspector/JSInjectedScriptHost.h:
* Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp:
(Inspector::JSInjectedScriptHost::getOwnPrivatePropertyMethods): Added.
* Source/JavaScriptCore/inspector/JSInjectedScriptHostPrototype.cpp:
(Inspector::JSInjectedScriptHostPrototype::finishCreation):
(Inspector::jsInjectedScriptHostPrototypeFunctionGetOwnPrivatePropertyMethods): 
Added.

* LayoutTests/inspector/runtime/getProperties-expected.txt:
* LayoutTests/inspector/runtime/getDisplayableProperties-expected.txt:

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



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

Reply via email to