ccxvii / mujs

An embeddable Javascript interpreter in C.
http://mujs.com/
ISC License
812 stars 98 forks source link

JSON.stringify doesn't accept objects as space parameter #126

Closed isRyven closed 4 years ago

isRyven commented 4 years ago

So using something like that doesn't work:

JSON.stringify({a:1,b:2}, undefined, new Number(4));

According to specification it clearly should accept either String or Number objects.