Skip to content

Commit

Permalink
Added a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
1BADragon committed Oct 13, 2024
1 parent 86fd101 commit 1d46557
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rscel/src/compiler/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,9 @@ impl<'l> CelCompiler<'l> {
vec![ByteCode::Access],
|o, c| {
if let CelValue::Ident(s) = c {
// Allow for const eval for obj members in the
// off chance a user does somthing like this
// `{'a': 3}.a`. Its const value will be 3.
if o.is_obj() {
// So if this fails we should break the const
// status and let the compiler generate some
Expand Down

0 comments on commit 1d46557

Please sign in to comment.