This commit is contained in:
Olivier Gagnon
2022-07-15 01:51:30 -04:00
parent 86c0913bd3
commit 4bee746576
33 changed files with 178 additions and 154 deletions
+6
View File
@@ -1,7 +1,13 @@
export declare class Interpreter {
constructor(code: string, opt_initFunc: (int: Interpreter, scope: Object) => void, lineOffset?: number);
getProperty(obj: Value, name: Value): Value;
setProperty(obj: Object, name: Value, value: Value): void;
hasProperty(obj: Value, name: Value): boolean;
pseudoToNative(obj: Value): unknown;
nativeToPseudo(obj: Value): unknown;
createAsyncFunction(f: (...args: unknown[]) => unknown): Object;
createNativeFunction(f: (...args: unknown[]) => unknown): Object;
step(): boolean;
}
// Object and Value are 2 different things in the interpreter;