mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 05:55:06 +00:00
js: Print negative zero with minus sign
This commit is contained in:
parent
65cdac1a5b
commit
fb13ea2259
1 changed files with 2 additions and 0 deletions
|
@ -280,6 +280,8 @@ static void print_value(JS::Value value, HashTable<JS::Object*>& seen_objects)
|
|||
printf("\033[34;1m");
|
||||
if (value.is_string())
|
||||
putchar('"');
|
||||
else if (value.is_negative_zero())
|
||||
putchar('-');
|
||||
printf("%s", value.to_string_without_side_effects().characters());
|
||||
if (value.is_string())
|
||||
putchar('"');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue