fix(tvix/eval): emit correct count in OpAttrPath
Not sure how exactly this snuck in, but it caused some subtle breakages in deeply nested attribute sets. Change-Id: I8049ce912405d3750031f79cc8d86ff1c3c02c2b Reviewed-on: https://cl.tvl.fyi/c/depot/+/6208 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
parent
8d45fbadea
commit
43658a5b90
4 changed files with 4 additions and 2 deletions
|
|
@ -393,7 +393,7 @@ impl Compiler {
|
|||
// otherwise we need to emit an instruction to construct
|
||||
// the attribute path.
|
||||
if key_count > 1 {
|
||||
self.chunk.push_op(OpCode::OpAttrPath(2));
|
||||
self.chunk.push_op(OpCode::OpAttrPath(key_count));
|
||||
}
|
||||
|
||||
// The value is just compiled as normal so that its
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue