Currently in ToT (and STP 117+), trying to create a SharedArrayBuffer throws with "Shared WebAssembly.Memory and SharedArrayBuffer are not enabled". This has caused a variety of WPT tests to regress (e.g., many encoding tests), due to https://github.com/web-platform-tests/wpt/blob/master/common/sab.js silently creating a non-shared WebAssembly.Memory (as would be expected of an unsupported option) previously but now throwing with that TypeError.
<rdar://problem/73152534>
Created attachment 418204 [details] Patch
https://github.com/web-platform-tests/wpt/commit/6d9af4c25eb93a12891f8bd88bc21510013b5ed5 Now, sab.js is fixed.
Comment on attachment 418204 [details] Patch r=me if EWS bots are green.
I'll only update sab.js and wasm for now.
Created attachment 418208 [details] Patch
Debug failure http/tests/loading/basic-auth-load-URL-with-consecutive-slashes.html is flaky and unrelated to wpt / wasm
Committed r271774: <https://trac.webkit.org/changeset/271774>
Comment on attachment 418208 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=418208&action=review > Source/JavaScriptCore/ChangeLog:8 > + Not accessing "shared" field if Options::useSharedArrayBuffer() is false. This doesn't tell me the answer to the question in the title.
(In reply to Simon Fraser (smfr) from comment #9) > Comment on attachment 418208 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=418208&action=review > > > Source/JavaScriptCore/ChangeLog:8 > > + Not accessing "shared" field if Options::useSharedArrayBuffer() is false. > > This doesn't tell me the answer to the question in the title. The answer is no. The above comment was trying to say, "we should not access the `shared` field if Options::useSharedArrayBuffer() is false".
This seemingly never made it into safari-611-branch, and accounts for a fair bit of the regressions from Safari 14.0 -> 14.1 on https://wpt.fyi/results/?q=seq%28status%3Apass%7Cstatus%3Aok%20status%3Apass%7Cstatus%3Aok%20status%3A%21pass%26status%3A%21ok%26status%3A%21unknown%20status%3A%21pass%26status%3A%21ok%26status%3A%21unknown%29%20&run_id=6016518288572416&run_id=5667597628473344&run_id=5748130572140544&run_id=5766281976348672 :(
Filed https://github.com/web-platform-tests/wpt/pull/28998 to workaround the constructor unexpectedly throwing.