Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8ff4b558a47891b69ffa3b4ca3e67939d956e793
      
https://github.com/WebKit/WebKit/commit/8ff4b558a47891b69ffa3b4ca3e67939d956e793
  Author: Youenn Fablet <[email protected]>
  Date:   2025-07-03 (Thu, 03 Jul 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/structured-clone/structured-clone-battery-of-tests.js
    M Source/JavaScriptCore/runtime/ErrorInstance.cpp
    M Source/JavaScriptCore/runtime/ErrorInstance.h
    M Source/WebCore/bindings/js/SerializedScriptValue.cpp
    M Source/WebCore/bindings/js/SerializedScriptValue.h

  Log Message:
  -----------
  structuredClone should preserve Error.cause
rdar://152725880
https://bugs.webkit.org/show_bug.cgi?id=295335

Reviewed by Justin Michaud.

We add serialization of Error.cause string in SerializedScriptValue.
We update ErrorInstance to allow passing cause as a String.
We update the corresponding WPT test, which already passes on Chrome and 
Firefox.

* 
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/structured-clone/structured-clone-battery-of-tests.js:
(compare_Object.async if):
(compare_Object):
* Source/JavaScriptCore/runtime/ErrorInstance.cpp:
(JSC::ErrorInstance::create):
(JSC::ErrorInstance::finishCreation):
* Source/JavaScriptCore/runtime/ErrorInstance.h:
(JSC::ErrorInstance::create):
* Source/WebCore/bindings/js/SerializedScriptValue.cpp:
(WebCore::CloneSerializer::dumpIfTerminal):
(WebCore::CloneDeserializer::readTerminal):
(WebCore::extractErrorInformationFromErrorInstance):
* Source/WebCore/bindings/js/SerializedScriptValue.h:

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