Removed GopherJS, basic frontend completed, need backend changes for

torrent storage
This commit is contained in:
2017-11-30 18:12:11 -05:00
parent 67fdef16b1
commit e98ad2cc88
69321 changed files with 5498914 additions and 337 deletions

View File

@@ -0,0 +1,36 @@
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
};