From 39381badd75079d67bcd10a04510e72838bb0fb5 Mon Sep 17 00:00:00 2001 From: Jason Zhang Date: Tue, 1 Oct 2024 09:45:41 +0930 Subject: [PATCH] Update test/parallel/test-structuredClone-global.js Co-authored-by: jakecastelli <38635403+jakecastelli@users.noreply.github.com> --- test/parallel/test-structuredClone-global.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-structuredClone-global.js b/test/parallel/test-structuredClone-global.js index 61e04b38b129b3..899fb7d1eab31b 100644 --- a/test/parallel/test-structuredClone-global.js +++ b/test/parallel/test-structuredClone-global.js @@ -44,7 +44,7 @@ for (const StreamClass of [ReadableStream, WritableStream, TransformStream]) { ].forEach((platformEntity) => { assert.throws(() => structuredClone(new platformEntity.platformClass(platformEntity.value)), new DOMException('Cannot clone object of unsupported type.', 'DataCloneError'), - `Cloning ${platformEntity.message} should throw DOMException`); + `Cloning ${platformEntity.brand} should throw DOMException`); });