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`); });