difftreelog
fix(evaluator) restrict standalone `super` usage
in: master
2 files changed
crates/jsonnet-evaluator/src/error.rsdiffbeforeafterboth--- a/crates/jsonnet-evaluator/src/error.rs
+++ b/crates/jsonnet-evaluator/src/error.rs
@@ -22,6 +22,8 @@
ValueIndexMustBeTypeGot(ValType, ValType, ValType),
CantIndexInto(ValType),
+ StandaloneSuper,
+
RuntimeError(String),
StackOverflow,
FractionalIndex,
crates/jsonnet-evaluator/src/evaluate.rsdiffbeforeafterboth811 file_path.push(path);811 file_path.push(path);812 Val::Str(with_state(|s| s.import_file_str(&file_path))?)812 Val::Str(with_state(|s| s.import_file_str(&file_path))?)813 }813 }814 Literal(LiteralType::Super) => return create_error(crate::error::Error::StandaloneSuper),814 })815 })815}816}816817