Commit 42e7b4d
authored
$split: return undefined for non-string input (RecoLabs#1)
The jsonata npm package returns undefined when $split receives a
non-string first argument (number, boolean, etc.), but gnata threw
a hard T0410 error. This divergence caused silent evaluation
mismatches when gnata was used as a drop-in replacement.
Return nil (undefined) instead of erroring, matching the reference
jsonata behavior. The nil-input path was already handled correctly.
Signed-off-by: NirBarak-RecoLabs <nirb@recolabs.ai>1 parent 5b44956 commit 42e7b4d
3 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
| 427 | + | |
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
0 commit comments