Summary

Harness status: OK

Found 3 tests

Details

ResultTest NameMessage
PassTrying to transfer a SharedArrayBuffer to this window throws
Asserts run
Pass
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)
PassTrying to transfer a SharedArrayBuffer to a worker throws
Asserts run
Pass
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)
PassTrying to transfer a SharedArrayBuffer through a MessagePort throws
Asserts run
Pass
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)