]> git.kaiwu.me - quickjs.git/commit
Improve error handling
authorCharlie Gordon <github@chqrlie.org>
Sat, 23 Mar 2024 11:58:53 +0000 (12:58 +0100)
committerCharlie Gordon <github@chqrlie.org>
Sat, 23 Mar 2024 11:58:53 +0000 (12:58 +0100)
commit653b2276cbc606e1f883af5a0d82f2677327ea7a
treead3d4be6251713c308f4dd066658b58e16f96d1e
parent203fe2d539a96d0df44a315728566520f92debdc
Improve error handling

- detect and report invalid duplicate parameter names
- throw RangeError for too many function arguments
- throw RangeError for invalid string length
- prevent `-Wcast-function-type` warnings
quickjs.c