diff options
author | Vincent Ambo <mail@tazj.in> | 2022-09-20T21·32+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-20T23·48+0000 |
commit | 8f2004d360dde108f90d2b49b0609bd43b7b6d7d (patch) | |
tree | 6ee59500b7d5a6f54de607627357d45e8cf285af /third_party/bufbuild | |
parent | f600aa5322f6628e1af63e9dd4c6ad073020e152 (diff) |
refactor(tvix/eval): add VM::call_value helper method r/4943
This makes it possible to call a callable value (builtin or closure/lambda) directly, without unwrapping it first. This is needed for pretty much all higher-order functions to work correctly. This is mostly equivalent to the previous code in coerce_to_string for calling `__toString`, except it expects the argument(s) to already be placed on the stack. Note that the span for the `NotCallable` error is not currently guaranteed to make any sense, will experiment with this. Change-Id: I821224368d438a28900858b343defc1817e46a0a Reviewed-on: https://cl.tvl.fyi/c/depot/+/6717 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'third_party/bufbuild')
0 files changed, 0 insertions, 0 deletions