lvcabral / brs-engine

BrightScript Simulation Engine - Run Roku apps on Browsers and Node.js
https://lvcabral.com/brs/
MIT License
77 stars 14 forks source link

Function `int()` when get a string converts to number or returns `NaN` #337

Closed lvcabral closed 5 months ago

lvcabral commented 5 months ago

The correct behavior to raise a Type Mismatch error, as the function should only accept numeric types.

lvcabral commented 5 months ago

Fixed by #342