mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 18:35:07 +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");
|
printf("\033[34;1m");
|
||||||
if (value.is_string())
|
if (value.is_string())
|
||||||
putchar('"');
|
putchar('"');
|
||||||
|
else if (value.is_negative_zero())
|
||||||
|
putchar('-');
|
||||||
printf("%s", value.to_string_without_side_effects().characters());
|
printf("%s", value.to_string_without_side_effects().characters());
|
||||||
if (value.is_string())
|
if (value.is_string())
|
||||||
putchar('"');
|
putchar('"');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue