Commit 87aebfb
committed
fix(types): default typeMap to empty Map for non-TS native results (#569)
patchNativeResult now initializes typeMap to an empty Map when the
native engine omits it (common for Python, Go, Rust, etc.), ensuring
the returned object satisfies the ExtractorOutput contract and callers
can safely access .entries()/.size without null checks.1 parent 92ce3c0 commit 87aebfb
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
307 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
308 | 312 | | |
309 | 313 | | |
310 | 314 | | |
| |||
0 commit comments