Commit 74adf2d
authored
[Web] Fix RPC argument parsing for new FFI string/bytes types (#18683)
## Why
Recent FFI refactoring added new type indices kTVMFFIStr (65) and
kTVMFFIBytes (66). The RPC server didn't
handle these, causing "cannot support type index 65/66" errors when
Python sends string/bytes arguments via
RPC.
## How
`WriteFFIAny` in C++ writes the `type_index` twice for these types. The
fix adds handlers that read and discard the duplicate type_index before
reading the actual data.1 parent 7493164 commit 74adf2d
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
237 | 241 | | |
238 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
239 | 246 | | |
240 | 247 | | |
241 | 248 | | |
| |||
0 commit comments