Sha256: 73aee5f5e4c692ad35d479523ce17a2126fd9bca09d5ac5a758619fd0fc8d9df
Contents?: true
Size: 770 Bytes
Versions: 20
Compression:
Stored size: 770 Bytes
Contents
var global = require('./$.global') , hide = require('./$.hide') , uid = require('./$.uid') , TYPED = uid('typed_array') , VIEW = uid('view') , ABV = !!(global.ArrayBuffer && global.DataView) , ARRAYS = true , i = 0, l = 9; var TypedArrayConstructors = [ 'Int8Array', 'Uint8Array', 'Uint8ClampedArray', 'Int16Array', 'Uint16Array', 'Int32Array', 'Uint32Array', 'Float32Array', 'Float64Array' ]; while(i < l){ var Typed = global[TypedArrayConstructors[i++]]; if(Typed){ hide(Typed.prototype, TYPED, true); hide(Typed.prototype, VIEW, true); } else ARRAYS = false; } module.exports = { ARRAYS: ARRAYS, ABV: ABV, CONSTR: ARRAYS && ABV, TYPED: TYPED, VIEW: VIEW };
Version data entries
20 entries across 10 versions & 3 rubygems