Commit 818a557
committed
fix(extractor): add string-type guard and anchored regex for defineProperty key extraction (#1328)
- defineProperty path: guard arg1.type !== 'string' before extraction, matching
the Rust seed_define_property_entries behaviour (which returns None for non-string AST nodes)
- defineProperties path: use anchored /^['"]|['"]$/ to strip only boundary quotes,
not quotes within the key value, with string-type guard
- seedProtoProperties: same anchored regex fix for pair keys
Closes the TS/Rust engine parity gap flagged in Greptile review. (docs check acknowledged)1 parent f8b727b commit 818a557
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1634 | 1634 | | |
1635 | 1635 | | |
1636 | 1636 | | |
1637 | | - | |
| 1637 | + | |
| 1638 | + | |
1638 | 1639 | | |
1639 | 1640 | | |
1640 | 1641 | | |
| |||
1652 | 1653 | | |
1653 | 1654 | | |
1654 | 1655 | | |
1655 | | - | |
| 1656 | + | |
1656 | 1657 | | |
1657 | 1658 | | |
1658 | 1659 | | |
| |||
1688 | 1689 | | |
1689 | 1690 | | |
1690 | 1691 | | |
1691 | | - | |
| 1692 | + | |
1692 | 1693 | | |
1693 | 1694 | | |
1694 | 1695 | | |
| |||
0 commit comments