Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d2cffa902fbaec6a7b4ef196aab9c7e9a4e61a2e
      
https://github.com/WebKit/WebKit/commit/d2cffa902fbaec6a7b4ef196aab9c7e9a4e61a2e
  Author: Keith Miller <[email protected]>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M Source/JavaScriptCore/jsc.cpp
    M Source/JavaScriptCore/runtime/ArrayBuffer.cpp
    M Source/JavaScriptCore/runtime/ArrayBuffer.h
    M Source/JavaScriptCore/runtime/CloneDeserializerBase.h
    M Source/JavaScriptCore/runtime/CloneSerializerBase.h
    M Source/JavaScriptCore/runtime/StructuredCloneTags.h
    M Source/JavaScriptCore/runtime/TypedArrayType.h
    M Source/WebCore/bindings/js/SerializedScriptValue.cpp
    M Source/WebCore/bindings/js/SerializedScriptValueInternals.h

  Log Message:
  -----------
  [JSC] StructuredCloning code should include ArrayBuffers
https://bugs.webkit.org/show_bug.cgi?id=324104
rdar://187319328

Reviewed by Yusuke Suzuki.

Move the remaining, ArrayBuffer/WebAssembly.Memory serialization /
deserialization code into JSC. To do this JSC has to have a concept of
SideChannels for cloning. Since not every context allows all these
side channels, JSC's cloning now has a few more embedder hooks:
```
    agentClusterID()
    allowsSharedMemorySerialization()
    allowsWasmModuleSerialization()
    toJSArrayBuffer()
```

This patch also replaces the custom cloning code in $262.agent with
structured cloning. test262 only requires support for a
SharedArrayBuffer but supporting the full structured cloning means
less duplicated logic. In a follow up patch, I plan to add support for
the core of the `Worker` API.

No new tests, covered by existing tests.

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



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

Reply via email to