initial __runtime_instanceof

This commit is contained in:
dcode
2019-04-02 21:30:47 +02:00
parent d85a43892f
commit a639a42f0d
66 changed files with 654 additions and 157 deletions

View File

@ -10,6 +10,11 @@ import { ArrayBufferView } from "./arraybuffer";
@unsafe @builtin
export declare function __runtime_id<T>(): u32;
/** Tests if a managed class is the same as or a superclass of another. */
// @ts-ignore: decorator
@unsafe @builtin
export declare function __runtime_instanceof(id: u32, superId: u32): bool;
/** Runtime implementation. */
export namespace runtime {