Commit f174348
authored
Prevent object contructor setting internal flags (#802)
The evaluator internally represents functions and lambdas using
objects tagged with the properties `_jsonata_function` or
`_jsonata_lambda`. This commit prevents expressions from
setting these flags in the object constructor, which could
potentially interfere with the processing of the expression.
Signed-off-by: Andrew Coleman <andrew_coleman@uk.ibm.com>1 parent 91532d4 commit f174348
2 files changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
948 | 958 | | |
949 | 959 | | |
950 | 960 | | |
| |||
2018 | 2028 | | |
2019 | 2029 | | |
2020 | 2030 | | |
| 2031 | + | |
2021 | 2032 | | |
2022 | 2033 | | |
2023 | 2034 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1134 | 1134 | | |
1135 | 1135 | | |
1136 | 1136 | | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1137 | 1152 | | |
1138 | 1153 | | |
1139 | 1154 | | |
| |||
0 commit comments