Add ArrayBuffer.isView and rework Array.isArray (#431)

This commit is contained in:
Max Graey
2019-02-03 11:41:04 +02:00
committed by Daniel Wirtz
parent 1867416236
commit 4829f3a3e4
18 changed files with 3530 additions and 2567 deletions

View File

@ -2,7 +2,14 @@
var globalScope = typeof window !== "undefined" && window || typeof global !== "undefined" && global || self;
globalScope.ASC_TARGET = 0;
globalScope.ASC_TARGET = 0; // JS
globalScope.ASC_NO_TREESHAKING = false;
globalScope.ASC_NO_ASSERT = false;
globalScope.ASC_MEMORY_BASE = 0;
globalScope.ASC_OPTIMIZE_LEVEL = 3;
globalScope.ASC_SHRINK_LEVEL = 0;
globalScope.ASC_FEATURE_MUTABLE_GLOBAL = false;
globalScope.ASC_FEATURE_SIGN_EXTENSION = false;
var F64 = new Float64Array(1);
var U64 = new Uint32Array(F64.buffer);
@ -197,7 +204,7 @@ globalScope["isFloat"] = function isFloat(arg) {
return typeof arg === "number";
};
globalScope["isReference"] = function isClass(arg) {
globalScope["isReference"] = function isReference(arg) {
return typeof arg === "object" || typeof arg === "string";
};