Skip to content

Commit

Permalink
Merge pull request #38234 from lewing/no-sharing
Browse files Browse the repository at this point in the history
[wasm]Don't assume SharedArrayBuffer exists.
  • Loading branch information
lewing committed Jun 22, 2020
2 parents 54625f3 + f6aada9 commit 92153e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mono/wasm/runtime/binding_support.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ var BindingSupportLib = {
DataView.prototype[Symbol.for("wasm type")] = 3;
Function.prototype[Symbol.for("wasm type")] = 4;
Map.prototype[Symbol.for("wasm type")] = 5;
SharedArrayBuffer.prototype[Symbol.for("wasm type")] = 6;
if (typeof SharedArrayBuffer !== "undefined")
SharedArrayBuffer.prototype[Symbol.for("wasm type")] = 6;
Int8Array.prototype[Symbol.for("wasm type")] = 10;
Uint8Array.prototype[Symbol.for("wasm type")] = 11;
Uint8ClampedArray.prototype[Symbol.for("wasm type")] = 12;
Expand Down

0 comments on commit 92153e9

Please sign in to comment.