mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 289878db3e356829bb7ae5699dd847f04a7acf58
This commit is contained in:
parent
f275115614
commit
9f0945f6a0
185 changed files with 1323 additions and 808 deletions
|
@ -5,6 +5,9 @@ const createBuffer = (() => {
|
|||
if (type === "ArrayBuffer") {
|
||||
return new ArrayBuffer(length);
|
||||
} else if (type === "SharedArrayBuffer") {
|
||||
if (sabConstructor.name !== "SharedArrayBuffer") {
|
||||
throw new Error("WebAssembly.Memory does not support shared:true");
|
||||
}
|
||||
return new sabConstructor(length);
|
||||
} else {
|
||||
throw new Error("type has to be ArrayBuffer or SharedArrayBuffer");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue