forked from luna/jorts
vm: remove uneeded hack
This commit is contained in:
parent
8bc220d2f8
commit
9f45dea2c0
1 changed files with 0 additions and 7 deletions
|
@ -237,13 +237,6 @@ pub const VM = struct {
|
|||
fn doGetGlobal(self: *VM, name: []u8) !void {
|
||||
var kv_opt = self.globals.get(name);
|
||||
|
||||
// take out the OP_CONST loaded before, if any
|
||||
// note this is a complete hack.
|
||||
//var val = self.peek(0);
|
||||
//if (val.vtype == .Object and val.as.Object.otype == .String and std.mem.compare(u8, val.as.Object.value.String, name) == .Equal) {
|
||||
// _ = self.pop();
|
||||
//}
|
||||
|
||||
if (kv_opt) |kv| {
|
||||
try self.push(kv.value);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue