feat(tvix/eval): placeholder for builtins.placeholder
Change-Id: I8d11f2db4489a7d82910256069d10f8bed3bdf9a Reviewed-on: https://cl.tvl.fyi/c/depot/+/7451 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: Adam Joseph <adam@westernsemico.com> Tested-by: BuildkiteCI
This commit is contained in:
parent
f32abc57cf
commit
a87abd5eed
1 changed files with 7 additions and 0 deletions
|
@ -899,6 +899,13 @@ mod pure_builtins {
|
|||
.map(Value::String)
|
||||
}
|
||||
|
||||
#[builtin("placeholder")]
|
||||
fn builtin_placeholder(vm: &mut VM, #[lazy] _: Value) -> Result<Value, ErrorKind> {
|
||||
// TODO(amjoseph)
|
||||
vm.emit_warning(WarningKind::NotImplemented("builtins.placeholder"));
|
||||
Ok("<builtins.placeholder-is-not-implemented-in-tvix-yet>".into())
|
||||
}
|
||||
|
||||
#[builtin("trace")]
|
||||
fn builtin_trace(_: &mut VM, message: Value, value: Value) -> Result<Value, ErrorKind> {
|
||||
// TODO(grfn): `trace` should be pluggable and capturable, probably via a method on
|
||||
|
|
Loading…
Reference in a new issue