]> git.kaiwu.me - quickjs.git/commit
Improve `JSON.stringify`
authorCharlie Gordon <github@chqrlie.org>
Sat, 23 Mar 2024 11:43:45 +0000 (12:43 +0100)
committerCharlie Gordon <github@chqrlie.org>
Sat, 23 Mar 2024 11:43:45 +0000 (12:43 +0100)
commit203fe2d539a96d0df44a315728566520f92debdc
tree483389a0a5a13075a034de02f169678e93852a3b
parentce6b6dcacd4b0882b28c2b280018715af41b9955
Improve `JSON.stringify`

- changed error messages
- clarify `toJSON` method usage
- simplify boxed objects handling
- for ECMA conformity, BigInt objects need a toJSON method in the prototype chain
  including boxed objects
quickjs.c