Skip to content

Commit 39381ba

Browse files
Update test/parallel/test-structuredClone-global.js
Co-authored-by: jakecastelli <[email protected]>
1 parent e91bfab commit 39381ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-structuredClone-global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ for (const StreamClass of [ReadableStream, WritableStream, TransformStream]) {
4444
].forEach((platformEntity) => {
4545
assert.throws(() => structuredClone(new platformEntity.platformClass(platformEntity.value)),
4646
new DOMException('Cannot clone object of unsupported type.', 'DataCloneError'),
47-
`Cloning ${platformEntity.message} should throw DOMException`);
47+
`Cloning ${platformEntity.brand} should throw DOMException`);
4848

4949
});
5050

0 commit comments

Comments
 (0)