Skip to content

Commit 92153e9

Browse files
authored
Merge pull request #38234 from lewing/no-sharing
[wasm]Don't assume SharedArrayBuffer exists.
2 parents 54625f3 + f6aada9 commit 92153e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mono/wasm/runtime/binding_support.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ var BindingSupportLib = {
3636
DataView.prototype[Symbol.for("wasm type")] = 3;
3737
Function.prototype[Symbol.for("wasm type")] = 4;
3838
Map.prototype[Symbol.for("wasm type")] = 5;
39-
SharedArrayBuffer.prototype[Symbol.for("wasm type")] = 6;
39+
if (typeof SharedArrayBuffer !== "undefined")
40+
SharedArrayBuffer.prototype[Symbol.for("wasm type")] = 6;
4041
Int8Array.prototype[Symbol.for("wasm type")] = 10;
4142
Uint8Array.prototype[Symbol.for("wasm type")] = 11;
4243
Uint8ClampedArray.prototype[Symbol.for("wasm type")] = 12;

0 commit comments

Comments
 (0)