sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
113 stars 43 forks source link

fix(stdlib, interp): fix `RoSGNode#callFunc` argument error reporting #663

Closed lkipke closed 3 years ago

lkipke commented 3 years ago

Summary

This fixes a bug where we would throw a Javascript error and display the resulting stack trace to users who used RoSGNode#callFunc with incorrect/missing arguments. I also consolidated our "incorrect arguments" error and removed some finallys that weren't behaving the way we expected them to.