[webkit-changes] [WebKit/WebKit] 40f536: Web Inspector: Console: show `boundThis` for arrow...

Devin Rousso noreply at github.com
Wed Aug 21 03:16:12 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 40f536f802efe55195f7480ff4ea1fdadf2adb98
      https://github.com/WebKit/WebKit/commit/40f536f802efe55195f7480ff4ea1fdadf2adb98
  Author: Devin Rousso <hi at devinrousso.com>
  Date:   2024-08-21 (Wed, 21 Aug 2024)

  Changed paths:
    M LayoutTests/inspector/model/remote-object-get-properties-expected.txt
    M LayoutTests/inspector/model/remote-object-get-properties.html
    M LayoutTests/inspector/runtime/getDisplayableProperties-expected.txt
    M LayoutTests/inspector/runtime/getDisplayableProperties.html
    M LayoutTests/inspector/runtime/getProperties-expected.txt
    M LayoutTests/inspector/runtime/getProperties.html
    M Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp

  Log Message:
  -----------
  Web Inspector: Console: show `boundThis` for arrow functions
https://bugs.webkit.org/show_bug.cgi?id=277960

Reviewed by Keith Miller.

This will help developers debug issues with `this` similar to `Function.prototype.bind()`.

Note that if `this` isn't used within the body of the arrow function, it's not captured.

* Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp:
(Inspector::JSInjectedScriptHost::getInternalProperties):

* LayoutTests/inspector/model/remote-object-get-properties.html:
* LayoutTests/inspector/model/remote-object-get-properties-expected.txt:
* LayoutTests/inspector/runtime/getDisplayableProperties.html:
* LayoutTests/inspector/runtime/getDisplayableProperties-expected.txt:
* LayoutTests/inspector/runtime/getProperties.html:
* LayoutTests/inspector/runtime/getProperties-expected.txt:

Canonical link: https://commits.webkit.org/282553@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