We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
type
1 parent 18f0f07 commit ee17fcdCopy full SHA for ee17fcd
1 file changed
lib/internal/webidl.js
@@ -15,6 +15,7 @@ const {
15
ObjectAssign,
16
SafeSet,
17
String,
18
+ Symbol,
19
SymbolIterator,
20
TypeError,
21
} = primordials;
@@ -28,14 +29,14 @@ const { kEmptyObject } = require('internal/util');
28
29
30
const converters = { __proto__: null };
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;
+const UNDEFINED = Symbol('undefined');
+const BOOLEAN = Symbol('boolean');
+const STRING = Symbol('string');
+const SYMBOL = Symbol('symbol');
+const NUMBER = Symbol('number');
+const BIGINT = Symbol('bigint');
+const NULL = Symbol('null');
39
+const OBJECT = Symbol('object');
40
41
/**
42
* @see https://webidl.spec.whatwg.org/#es-any
0 commit comments