aboutsummaryrefslogtreecommitdiff
path: root/vm.d
diff options
context:
space:
mode:
Diffstat (limited to 'vm.d')
-rw-r--r--vm.d4
1 files changed, 1 insertions, 3 deletions
diff --git a/vm.d b/vm.d
index 5b69a23..ea6a1ae 100644
--- a/vm.d
+++ b/vm.d
@@ -457,13 +457,11 @@ class VM {
}
}
-InterpretResult interpret(string source) {
+InterpretResult interpret(string source, VM vm) {
Parser parser = new Parser(source);
Compiler compiler = new Compiler(ObjType.SCRIPT, &parser);
Function func = compiler.compile();
- VM vm = new VM();
-
// vm.globals[":int"] = makeTypeValue(":int");
vm.pushA(makeObjValue(func));