tvl-depot/tvix/eval/src/tests
Vincent Ambo b9646ab40c feat(tvix/eval): add builtins to builtins
This is a somewhat terrifying hack that enables us to support
`builtins.builtins`, by running a "fake compilation" inside of a
suspended native thunk that can resolve the weak pointer to the
globals.

With this implementation, the thunk at `builtins.builtins` actually
resolves to the "real" `builtins` (verified with a new test).

This is kind of ugly, and it's something users shouldn't use, but
bubbling a warning out of this is difficult at the moment due to a
little bit of trickery with how the spans in suspended native thunks
work (they don't) (see b/237, b/238)

Change-Id: I67d0e93246dd5b279c960aeda00402031aa12af3
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7748
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
2023-01-17 10:38:06 +00:00
..
nix_tests feat(tvix/eval): implement builtins.toXML 2023-01-16 13:43:14 +00:00
tvix_tests feat(tvix/eval): add builtins to builtins 2023-01-17 10:38:06 +00:00
mod.rs fix(tvix/eval): fix typo'd function name in tests 2023-01-07 14:48:42 +00:00