Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Fixed njs_vmcode_interpreter() when await fails. | Dmitry Volyntsev | 2022-06-02 |
Previously, while interpreting a user function, njs_vmcode_interpreter() might return prematurely when an error happens in await instruction. This is not correct because the current frame has to be unwound (or exception caught) first. The fix is to exit through only 5 appropriate exit points to ensure proper unwinding. The patch correctly fixes issue reported in 07ef6c1f04f1 (0.7.3). This closes #506 issue on Github. |