mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1310935 - Add missing check for SharedArrayBuffer availability. r=evilpie
This commit is contained in:
parent
4e1969f9a4
commit
fc4b28ccf3
@ -75,15 +75,16 @@
|
||||
* All TypedArray constructors for shared memory.
|
||||
*/
|
||||
const sharedTypedArrayConstructors = Object.freeze(
|
||||
typedArrayConstructors.map(sharedConstructor)
|
||||
typeof SharedArrayBuffer === "function"
|
||||
? typedArrayConstructors.map(sharedConstructor)
|
||||
: []
|
||||
);
|
||||
|
||||
/**
|
||||
* All TypedArray constructors for unshared and shared memory.
|
||||
*/
|
||||
const anyTypedArrayConstructors = Object.freeze([
|
||||
...typedArrayConstructors,
|
||||
...(typeof SharedArrayBuffer === "function" ? sharedTypedArrayConstructors : []),
|
||||
...typedArrayConstructors, ...sharedTypedArrayConstructors,
|
||||
]);
|
||||
|
||||
/**
|
||||
|
@ -75,15 +75,16 @@
|
||||
* All TypedArray constructors for shared memory.
|
||||
*/
|
||||
const sharedTypedArrayConstructors = Object.freeze(
|
||||
typedArrayConstructors.map(sharedConstructor)
|
||||
typeof SharedArrayBuffer === "function"
|
||||
? typedArrayConstructors.map(sharedConstructor)
|
||||
: []
|
||||
);
|
||||
|
||||
/**
|
||||
* All TypedArray constructors for unshared and shared memory.
|
||||
*/
|
||||
const anyTypedArrayConstructors = Object.freeze([
|
||||
...typedArrayConstructors,
|
||||
...(typeof SharedArrayBuffer === "function" ? sharedTypedArrayConstructors : []),
|
||||
...typedArrayConstructors, ...sharedTypedArrayConstructors,
|
||||
]);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user