File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export function stringify(value) {
23
23
const stringified = [ ] ;
24
24
25
25
/** @type {Map<any, number> } */
26
- const map = new Map ( ) ;
26
+ const indexes = new Map ( ) ;
27
27
28
28
/** @type {string[] } */
29
29
const keys = [ ] ;
@@ -36,7 +36,7 @@ export function stringify(value) {
36
36
throw new DevalueError ( `Cannot stringify a function` , keys ) ;
37
37
}
38
38
39
- if ( map . has ( thing ) ) return map . get ( thing ) ;
39
+ if ( indexes . has ( thing ) ) return indexes . get ( thing ) ;
40
40
41
41
if ( thing === undefined ) return UNDEFINED ;
42
42
if ( Number . isNaN ( thing ) ) return NAN ;
@@ -45,7 +45,7 @@ export function stringify(value) {
45
45
if ( thing === 0 && 1 / thing < 0 ) return NEGATIVE_ZERO ;
46
46
47
47
const index = p ++ ;
48
- map . set ( thing , index ) ;
48
+ indexes . set ( thing , index ) ;
49
49
50
50
let str = '' ;
51
51
You can’t perform that action at this time.
0 commit comments