Commit caaf84a
Fix ReferenceError in QuickJS dispatch
If an unrecognized command is processed by globalThis.dispatch,
the error handler attempts to reference cmdkey without it
being defined. This throws a ReferenceError instead of generating
the intended CouchDB fatal error array.
This commit assigns cmd.shift() to a const variable cmdkey before
evaluating the switch statement.1 parent fc236b7 commit caaf84a
1 file changed
Lines changed: 2 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
0 commit comments