Skip to content

Add tests for structured cloning of immutable ArrayBuffers#59803

Open
gibson042 wants to merge 1 commit into
web-platform-tests:masterfrom
gibson042:2026-05-structuredclone-of-immutable-arraybuffer
Open

Add tests for structured cloning of immutable ArrayBuffers#59803
gibson042 wants to merge 1 commit into
web-platform-tests:masterfrom
gibson042:2026-05-structuredclone-of-immutable-arraybuffer

Conversation

@gibson042
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me modulo nit.

assert_throws_dom("DataCloneError", () => channel.port1.postMessage(iab, [iab]));
assert_throws_dom("DataCloneError", () => channel.port1.postMessage("test", [iab]));
}, "Trying to transfer an immutable ArrayBuffer through a MessagePort throws");
</script>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this test given the change to html/webappapis/structured-clone/structured-clone-battery-of-tests-with-transferables.js.

@annevk
Copy link
Copy Markdown
Member

annevk commented May 12, 2026

Though what is the proposed Web IDL integration as that'll impact more APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants