diff options
Diffstat (limited to 'tvix/eval/src/vm.rs')
-rw-r--r-- | tvix/eval/src/vm.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs index 4e92c152a8d5..50dabf1ee8d5 100644 --- a/tvix/eval/src/vm.rs +++ b/tvix/eval/src/vm.rs @@ -597,25 +597,6 @@ impl<'o> VM<'o> { self.push(value) } - OpCode::OpResolveWithOrUpvalue(idx) => { - let ident = fallible!(self, self.pop().to_str()); - match self.resolve_with(ident.as_str()) { - // Variable found in local `with`-stack. - Ok(value) => self.push(value), - - // Variable not found => check upvalues. - Err(Error { - kind: ErrorKind::UnknownDynamicVariable(_), - .. - }) => { - let value = self.frame().upvalue(idx).clone(); - self.push(value); - } - - Err(err) => return Err(err), - } - } - OpCode::OpAssertFail => { return Err(self.error(ErrorKind::AssertionFailed)); } |