chore(tvix/eval): Pass in VM to nix_eq
Pass in, but ignore, a mutable reference to the VM to the `nix_eq` functions, in preparation for using that VM to force thunks during comparison. Change-Id: I565435d8dfb33768f930fdb5a6b0fb1365d7e161 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6651 Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
915ff5ac2a
commit
0b76ed5615
5 changed files with 55 additions and 20 deletions
|
|
@ -265,7 +265,7 @@ impl<'o> VM<'o> {
|
|||
OpCode::OpEqual => {
|
||||
let v2 = self.pop();
|
||||
let v1 = self.pop();
|
||||
let res = fallible!(self, v1.nix_eq(&v2));
|
||||
let res = fallible!(self, v1.nix_eq(&v2, self));
|
||||
|
||||
self.push(Value::Bool(res))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue