mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
js: Print negative zero with minus sign
This commit is contained in:
parent
65cdac1a5b
commit
fb13ea2259
Notes:
sideshowbarker
2024-07-19 01:55:34 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/fb13ea22599 Pull-request: https://github.com/SerenityOS/serenity/pull/3752
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…
Reference in a new issue