e983aaf0875f54e2e48ecb2dc17afea570373f9f8f3cc9554cf75d655b02466074c0109e4291aeca0ba9428e068cd5faf818324347bf8676852bd46a9ade84 674 B

12345678910111213141516171819202122232425262728
  1. var global = require('./_global');
  2. var hide = require('./_hide');
  3. var uid = require('./_uid');
  4. var TYPED = uid('typed_array');
  5. var VIEW = uid('view');
  6. var ABV = !!(global.ArrayBuffer && global.DataView);
  7. var CONSTR = ABV;
  8. var i = 0;
  9. var l = 9;
  10. var Typed;
  11. var TypedArrayConstructors = (
  12. 'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array'
  13. ).split(',');
  14. while (i < l) {
  15. if (Typed = global[TypedArrayConstructors[i++]]) {
  16. hide(Typed.prototype, TYPED, true);
  17. hide(Typed.prototype, VIEW, true);
  18. } else CONSTR = false;
  19. }
  20. module.exports = {
  21. ABV: ABV,
  22. CONSTR: CONSTR,
  23. TYPED: TYPED,
  24. VIEW: VIEW
  25. };