Commit 09c7afc
fix(db): treat objects with Symbol.toStringTag as leaf values in IsPlainObject (#1373)
* fix(db): treat objects with Symbol.toStringTag as leaf values in IsPlainObject
Temporal types (Temporal.PlainDate, ZonedDateTime, etc.) have
Symbol.toStringTag set but are not in the JsBuiltIns union, causing
IsPlainObject to return true and Ref<T> to recursively walk their
methods and mangle them to {}.
Adds a Symbol.toStringTag check so all class instances (including all
Temporal types) are treated as leaf values, preserving their types in
query select projections.
Fixes #1372
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>1 parent eed43cd commit 09c7afc
2 files changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
909 | 909 | | |
910 | 910 | | |
911 | 911 | | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
912 | 918 | | |
913 | 919 | | |
914 | 920 | | |
915 | 921 | | |
916 | 922 | | |
917 | 923 | | |
918 | 924 | | |
919 | | - | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
920 | 928 | | |
921 | 929 | | |
922 | 930 | | |
| |||
0 commit comments