We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55ff640 commit 1feae12Copy full SHA for 1feae12
lib/internal/crypto/webidl.js
@@ -180,7 +180,10 @@ converters.object = (V, opts) => {
180
};
181
182
function isNonSharedArrayBuffer(V) {
183
- return ObjectPrototypeIsPrototypeOf(ArrayBufferPrototype, V);
+ // SharedArrayBuffers can be disabled with --no-harmony-sharedarraybuffer.
184
+ if (SharedArrayBuffer !== undefined)
185
+ return ObjectPrototypeIsPrototypeOf(ArrayBufferPrototype, V);
186
+ return false;
187
}
188
189
function isSharedArrayBuffer(V) {
0 commit comments