-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
3 lines (3 loc) · 1.51 KB
/
index.js
1
2
3
// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0
var r,e;r=this,e=function(){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol?Symbol:void 0,o="function"==typeof n?n.toStringTag:"",f=r&&"symbol"==typeof Symbol.toStringTag?function(r){var n,f,u,a,y;if(null==r)return e.call(r);f=r[o],y=o,n=null!=(a=r)&&t.call(a,y);try{r[o]=void 0}catch(t){return e.call(r)}return u=e.call(r),n?r[o]=f:delete r[o],u}:function(r){return e.call(r)},u="function"==typeof SharedArrayBuffer;function a(r){return u&&r instanceof SharedArrayBuffer||"[object SharedArrayBuffer]"===f(r)}var y="function"==typeof SharedArrayBuffer?SharedArrayBuffer:null,i="function"==typeof SharedArrayBuffer?SharedArrayBuffer:null;return function(){var r,e,t;if("function"!=typeof y)return!1;try{t=(e=new y(16)).slice(4,8),r=a(e)&&a(t)&&16===e.byteLength&&4===t.byteLength}catch(e){r=!1}return r}()?i:function(r){throw new Error("not supported. The current environment does not support SharedArrayBuffers, and, unfortunately, SharedArrayBuffers cannot be polyfilled. For shared memory applications, upgrade your runtime environment to one which supports SharedArrayBuffers.")}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(r="undefined"!=typeof globalThis?globalThis:r||self).SharedArrayBuffer=e();
//# sourceMappingURL=index.js.map