Skip to content

Commit

Permalink
Fix var name for minus infinity [fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Sep 30, 2023
1 parent b530b73 commit 60ff5c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/serialize/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ function traceGlobal(val, {type, parent, key}, record) {
// Special values
if (key === 'minusInfinity') {
const parentRecord = this.traceValue(Infinity, null, null);
record.name = 'minusInfinity';
record.extra = {val, parentRecord};
return GLOBAL_MINUS_INFINITY_TYPE;
}
Expand Down

0 comments on commit 60ff5c1

Please sign in to comment.