if (typeof window.Uint32Array !== "function" && typeof window.Uint32Array !== "object") { var CheapArray = function (type){ var proto = new Array(); window[type] = function (arg){ if (typeof (arg) === "number") { Array.call(this, arg); this.length = arg; for (var i = 0; i < _AN_Read_length("length", this); i++ ){ this[i] = 0; } } else { Array.call(this, _AN_Read_length("length", arg)); this.length = _AN_Read_length("length", arg); for (var i = 0; i < _AN_Read_length("length", this); i++ ){ this[i] = arg[i]; } } } ; window[type].prototype = proto; window[type].constructor = window[type]; } ; CheapArray('Float32Array'); CheapArray('Uint32Array'); CheapArray('Uint16Array'); CheapArray('Int16Array'); CheapArray('ArrayBuffer'); }