Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 287f8c8f6baf7578da8c01b56761ddf09bec76c0
      
https://github.com/WebKit/WebKit/commit/287f8c8f6baf7578da8c01b56761ddf09bec76c0
  Author: Chris Dumez <[email protected]>
  Date:   2025-10-07 (Tue, 07 Oct 2025)

  Changed paths:
    M Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
    M Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSON.cpp
    M Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSONInherit.cpp

  Log Message:
  -----------
  Use uncheckedDowncast<>() in generated toJSNewlyCreated() functions
https://bugs.webkit.org/show_bug.cgi?id=300364

Reviewed by Sam Weinig.

Use uncheckedDowncast<>() in generated toJSNewlyCreated() functions instead
of downcast<>(), since the code does a `is<>()` check right before and we
want to guarantee the compiler doesn't generate the type check twice.

* Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation):
* Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSON.cpp:
(WebCore::toJSNewlyCreated):
* Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSONInherit.cpp:
(WebCore::toJSNewlyCreated):

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