mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-24 04:01:46 +00:00
rtti & refactoring
This commit is contained in:
3
std/portable/index.d.ts
vendored
3
std/portable/index.d.ts
vendored
@ -644,3 +644,6 @@ declare namespace console {
|
||||
/** @deprecated */
|
||||
function log(message: string): void;
|
||||
}
|
||||
|
||||
/** Annotates a class as being unmanaged with limited capabilities. */
|
||||
declare function unmanaged(constructor: Function): void;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
var globalScope = typeof window !== "undefined" && window || typeof global !== "undefined" && global || self;
|
||||
|
||||
globalScope.ASC_TARGET = 0; // JS
|
||||
globalScope.ASC_TARGET = 2; // Target.JS
|
||||
globalScope.ASC_NO_ASSERT = false;
|
||||
globalScope.ASC_MEMORY_BASE = 0;
|
||||
globalScope.ASC_OPTIMIZE_LEVEL = 3;
|
||||
@ -311,3 +311,5 @@ globalScope["store"] = globalScope["__store"] || function store(ptr, value, offs
|
||||
globalScope["load"] = globalScope["__load"] || function load(ptr, offset) {
|
||||
return HEAP[(ptr | 0) + (offset | 0)];
|
||||
};
|
||||
|
||||
globalScope["unmanaged"] = function() {};
|
||||
|
Reference in New Issue
Block a user