File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ const {
15
15
ObjectAssign,
16
16
SafeSet,
17
17
String,
18
+ Symbol,
18
19
SymbolIterator,
19
20
TypeError,
20
21
} = primordials ;
@@ -28,14 +29,14 @@ const { kEmptyObject } = require('internal/util');
28
29
29
30
const converters = { __proto__ : null } ;
30
31
31
- const UNDEFINED = 1 ;
32
- const BOOLEAN = 2 ;
33
- const STRING = 3 ;
34
- const SYMBOL = 4 ;
35
- const NUMBER = 5 ;
36
- const BIGINT = 6 ;
37
- const NULL = 7 ;
38
- const OBJECT = 8 ;
32
+ const UNDEFINED = Symbol ( 'undefined' ) ;
33
+ const BOOLEAN = Symbol ( 'boolean' ) ;
34
+ const STRING = Symbol ( 'string' ) ;
35
+ const SYMBOL = Symbol ( 'symbol' ) ;
36
+ const NUMBER = Symbol ( 'number' ) ;
37
+ const BIGINT = Symbol ( 'bigint' ) ;
38
+ const NULL = Symbol ( 'null' ) ;
39
+ const OBJECT = Symbol ( 'object' ) ;
39
40
40
41
/**
41
42
* @see https://webidl.spec.whatwg.org/#es-any
You can’t perform that action at this time.
0 commit comments