We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e323a36 commit 3f98c06Copy full SHA for 3f98c06
lib/internal/crypto/webidl.js
@@ -184,7 +184,10 @@ function isNonSharedArrayBuffer(V) {
184
}
185
186
function isSharedArrayBuffer(V) {
187
- return ObjectPrototypeIsPrototypeOf(SharedArrayBuffer.prototype, V);
+ // SharedArrayBuffers can be disabled with --no-harmony-sharedarraybuffer.
188
+ if (SharedArrayBuffer !== undefined)
189
+ return ObjectPrototypeIsPrototypeOf(SharedArrayBuffer.prototype, V);
190
+ return false;
191
192
193
converters.Uint8Array = (V, opts = kEmptyObject) => {
0 commit comments