Commit 43d130f
Fix segfault in v8 (#4986)
# Description of Changes
This was originally introduced in #4302; essentially, we stopped
unconditionally setting `HookFunctions.recv` to undefined and started
setting it to the value stored in
`ctx.get_embedder_data(RECV_SLOT_INDEX)`. However, in the code path for
v1 js modules, we never actually set that embedder data slot, and so
recv was a garbage value.
# Expected complexity level and risk
1: concentrated fix
# Testing
- [x] Repro no longer segfaults.
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>1 parent ae523db commit 43d130f
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
128 | 133 | | |
129 | 134 | | |
130 | 135 | | |
| |||
0 commit comments