Pass | Trying to transfer a SharedArrayBuffer to this window throws | Asserts runPass | assert_throws_dom("DataCloneError", function "() => window.postMessage(sab, "*", [sab])")
at Test.<anonymous> ( /html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/no-transferring.https.html:14:3) | Pass | assert_throws_dom("DataCloneError", function "() => window.postMessage("test", "*", [sab])")
at Test.<anonymous> ( /html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/no-transferring.https.html:15:3) |
|
Pass | Trying to transfer a SharedArrayBuffer to a worker throws | Asserts runPass | assert_throws_dom("DataCloneError", function "() => worker.postMessage(sab, [sab])")
at Test.<anonymous> ( /html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/no-transferring.https.html:21:3) | Pass | assert_throws_dom("DataCloneError", function "() => worker.postMessage("test", [sab])")
at Test.<anonymous> ( /html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/no-transferring.https.html:22:3) |
|
Pass | Trying to transfer a SharedArrayBuffer through a MessagePort throws | Asserts runPass | assert_throws_dom("DataCloneError", function "() => channel.port1.postMessage(sab, [sab])")
at Test.<anonymous> ( /html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/no-transferring.https.html:28:3) | Pass | assert_throws_dom("DataCloneError", function "() => channel.port1.postMessage("test", [sab])")
at Test.<anonymous> ( /html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/no-transferring.https.html:29:3) |
|