Skip to content

Commit 178e3ec

Browse files
committed
Fix -0 being stringified to 0
1 parent fd37829 commit 178e3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/debugger/logs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default async function createLogsTab({ debug, addon, console, msg }) {
133133

134134
const addLog = (text, thread, type) => {
135135
const log = {
136-
text,
136+
text: Object.is(text, -0) ? "-0" : text, // Preserve -0 in stringification
137137
type,
138138
count: 1,
139139
preview: true,

0 commit comments

Comments
 (0)