mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-30 06:54:26 +03:00
better pretty printing of strings - removed String.prototype.__quote()
This commit is contained in:
@@ -86,7 +86,7 @@ function toStr(a)
|
||||
case "undefined":
|
||||
return "undefined";
|
||||
case "string":
|
||||
return a.__quote();
|
||||
return JSON.stringify(a);
|
||||
case "number":
|
||||
if (a == 0 && 1 / a < 0)
|
||||
return "-0";
|
||||
|
Reference in New Issue
Block a user