blob: 89cfcd7715d38d8bdeda54790470d5578a0cb5ba [file] [log] [blame]
PASS Cannot transfer all objects
PASS Cannot transfer the same ArrayBuffer twice
PASS Serialize should make the ArrayBuffer detached, so it cannot be transferred again
FAIL Serialize should throw before a detached ArrayBuffer is found assert_throws_exactly: function "() => self.postMessage({ get whatever() { throw customError } }, "*", [transferable])" threw object "DataCloneError: The object can not be cloned." but we expected it to throw object "Error: hi"
FAIL Cannot transfer ArrayBuffer detached while the message was serialized assert_throws_dom: function "() => self.postMessage(message, "*", [transferable])" threw object "TypeError: Type error" that is not a DOMException DataCloneError: property "code" is equal to undefined, expected 25
PASS Cannot transfer the same MessagePort twice
PASS Serialize should make the MessagePort detached, so it cannot be transferred again
PASS Serialize should throw before a detached MessagePort is found
PASS Cannot transfer MessagePort detached while the message was serialized
PASS Cannot transfer the same ImageBitmap twice
PASS Serialize should make the ImageBitmap detached, so it cannot be transferred again
FAIL Serialize should throw before a detached ImageBitmap is found assert_throws_exactly: function "() => self.postMessage({ get whatever() { throw customError } }, "*", [transferable])" threw object "DataCloneError: The object can not be cloned." but we expected it to throw object "Error: hi"
FAIL Cannot transfer ImageBitmap detached while the message was serialized assert_throws_dom: function "() => self.postMessage(message, "*", [transferable])" did not throw
PASS Cannot transfer the same OffscreenCanvas twice
FAIL Serialize should make the OffscreenCanvas detached, so it cannot be transferred again assert_throws_dom: function "() => self.postMessage(null, "*", [transferable])" threw object "InvalidStateError: The object is in an invalid state." that is not a DOMException DataCloneError: property "code" is equal to 11, expected 25
FAIL Serialize should throw before a detached OffscreenCanvas is found assert_throws_exactly: function "() => self.postMessage({ get whatever() { throw customError } }, "*", [transferable])" threw object "InvalidStateError: The object is in an invalid state." but we expected it to throw object "Error: hi"
FAIL Cannot transfer OffscreenCanvas detached while the message was serialized assert_throws_dom: function "() => self.postMessage(message, "*", [transferable])" did not throw