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 @@ -16,6 +16,7 @@ const {
16
16
ObjectPrototypeIsPrototypeOf,
17
17
SafeSet,
18
18
String,
19
+ Symbol,
19
20
SymbolIterator,
20
21
TypeError,
21
22
} = primordials ;
@@ -30,14 +31,14 @@ const { kEmptyObject } = require('internal/util');
30
31
31
32
const converters = { __proto__ : null } ;
32
33
33
- const UNDEFINED = 1 ;
34
- const BOOLEAN = 2 ;
35
- const STRING = 3 ;
36
- const SYMBOL = 4 ;
37
- const NUMBER = 5 ;
38
- const BIGINT = 6 ;
39
- const NULL = 7 ;
40
- const OBJECT = 8 ;
34
+ const UNDEFINED = Symbol ( 'undefined' ) ;
35
+ const BOOLEAN = Symbol ( 'boolean' ) ;
36
+ const STRING = Symbol ( 'string' ) ;
37
+ const SYMBOL = Symbol ( 'symbol' ) ;
38
+ const NUMBER = Symbol ( 'number' ) ;
39
+ const BIGINT = Symbol ( 'bigint' ) ;
40
+ const NULL = Symbol ( 'null' ) ;
41
+ const OBJECT = Symbol ( 'object' ) ;
41
42
42
43
/**
43
44
* @see https://webidl.spec.whatwg.org/#es-any
You can’t perform that action at this time.
0 commit comments