Commit 4391048
authored
embind: Support strings for names of FunctionDefinitions for TS generation. (#20136)
`_embind_register_class_constructor` was calling `createFunctionDefinition`
with a string instead of a ptr to a string on the heap. This caused
`readLatinString` to try and construct a string from the whole heap. On
lower memory limits v8 handled this fine, but with higher limits the string
became too large. The test still passed with the bug since the constructor
name is not actually used in the .d.ts output file.1 parent 789d45d commit 4391048
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2921 | 2921 | | |
2922 | 2922 | | |
2923 | 2923 | | |
2924 | | - | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
2925 | 2929 | | |
2926 | 2930 | | |
2927 | 2931 | | |
| |||
0 commit comments