Newer
Older
pixi.js / packages / polyfill / src / index.js
@Matt Karl Matt Karl on 6 Dec 2017 472 bytes Texture and Resources Refactor (v5) (#4507)
import './Promise';
import './Object.assign';
import './requestAnimationFrame';
import './Math.sign';

if (!window.ArrayBuffer)
{
    window.ArrayBuffer = Array;
}

if (!window.Float32Array)
{
    window.Float32Array = Array;
}

if (!window.Uint32Array)
{
    window.Uint32Array = Array;
}

if (!window.Uint16Array)
{
    window.Uint16Array = Array;
}

if (!window.Uint8Array)
{
    window.Uint8Array = Array;
}

if (!window.Int32Array)
{
    window.Int32Array = Array;
}