1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 17:51:15 +02:00

Make EvalState::getBuiltin safe for missing attr

This commit is contained in:
Robert Hensing 2024-11-19 17:30:58 +01:00
parent 3b76d01f3b
commit a58e38dab7
2 changed files with 10 additions and 1 deletions

View file

@ -623,6 +623,11 @@ private:
public:
/**
* Retrieve a specific builtin, equivalent to evaluating `builtins.${name}`.
* @param name The attribute name of the builtin to retrieve.
* @throws EvalError if the builtin does not exist.
*/
Value & getBuiltin(const std::string & name);
struct Doc