Skip to content

Commit

Permalink
fix: handle SharedArrayBuffer not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
snyamathi committed Apr 21, 2021
1 parent 62f00fd commit 6a8d35c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function isDataView(value) {
exports.isDataView = isDataView;

// Store a copy of SharedArrayBuffer in case it's deleted elsewhere
var SharedArrayBufferCopy = SharedArrayBuffer;
var SharedArrayBufferCopy = typeof SharedArrayBuffer !== 'undefined' ? SharedArrayBuffer : undefined;
function isSharedArrayBufferToString(value) {
return ObjectToString(value) === '[object SharedArrayBuffer]';
}
Expand Down

0 comments on commit 6a8d35c

Please sign in to comment.