difftreelog
fix(evaluator) restrict standalone `super` usage
in: master
2 files changed
crates/jsonnet-evaluator/src/error.rsdiffbeforeafterboth22 ValueIndexMustBeTypeGot(ValType, ValType, ValType),22 ValueIndexMustBeTypeGot(ValType, ValType, ValType),23 CantIndexInto(ValType),23 CantIndexInto(ValType),2425 StandaloneSuper,242625 RuntimeError(String),27 RuntimeError(String),26 StackOverflow,28 StackOverflow,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