mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-20 02:11:31 +00:00
Add ArrayBuffer.isView and rework Array.isArray (#431)
This commit is contained in:
@ -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";
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user