Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2c033825b783f71f483e47c70f4d1398b40feaa7
      
https://github.com/WebKit/WebKit/commit/2c033825b783f71f483e47c70f4d1398b40feaa7
  Author: Razvan Caliman <[email protected]>
  Date:   2025-10-13 (Mon, 13 Oct 2025)

  Changed paths:
    M 
LayoutTests/inspector/formatting/resources/javascript-tests/for-statements-expected.js
    A Source/WebInspectorUI/Scripts/update-esprima-next
    A Source/WebInspectorUI/UserInterface/External/Esprima/.gitignore
    M Source/WebInspectorUI/UserInterface/External/Esprima/esprima.js
    M Tools/Scripts/webkitpy/style/checker.py

  Log Message:
  -----------
  Web Inspector: Update esprima-next
https://bugs.webkit.org/show_bug.cgi?id=300387
rdar://162193882

Reviewed by Devin Rousso.

Update esprima-next to the current latest version
(https://github.com/node-projects/esprima-next/commit/242fb79474f623c0efba35a25fa96ea48e0db35d)
which correctly identifes `for` statements that contain optional chaining 
operators.
This enables JSFormatter.js to add whitespace in the right places for these 
cases when pretty printing.

Add a new script that can update WebKit's exprima-next checkout
to the latest version with a configuration compatible with Web Inspector.

The default bundler configuration in the esprima-next source code outputs an ES 
module.
Web Inspector cannot currently use this. The script contains a custom bundler 
configuration
which produces an output with `esprima` exposed to the global scope, as Web 
Inspector expects it.

* 
LayoutTests/inspector/formatting/resources/javascript-tests/for-statements-expected.js:
(c.d.1):

Rebaseline tests for optional chaining operators in `for` statements added in 
https://commits.webkit.org/301197@main

* Source/WebInspectorUI/Scripts/update-esprima-next: Added.
* Source/WebInspectorUI/UserInterface/External/Esprima/esprima.js:
* Tools/Scripts/webkitpy/style/checker.py:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to