File tree 6 files changed +7
-0
lines changed
6 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 29
29
message : " Use `const { Reflect } = primordials;` instead of the global."
30
30
- name : Symbol
31
31
message : " Use `const { Symbol } = primordials;` instead of the global."
32
+ - name : WeakMap
33
+ message : " Use `const { WeakMap } = primordials;` instead of the global."
32
34
no-restricted-syntax :
33
35
# Config copied from .eslintrc.js
34
36
- error
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const {
17
17
ReflectOwnKeys,
18
18
Symbol,
19
19
SymbolHasInstance,
20
+ WeakMap,
20
21
} = primordials ;
21
22
22
23
const { trace } = internalBinding ( 'trace_events' ) ;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const {
18
18
ObjectKeys,
19
19
Symbol,
20
20
SymbolFor,
21
+ WeakMap,
21
22
} = primordials ;
22
23
23
24
const messages = new Map ( ) ;
Original file line number Diff line number Diff line change 2
2
3
3
const {
4
4
ObjectDefineProperty,
5
+ WeakMap,
5
6
} = primordials ;
6
7
7
8
const {
Original file line number Diff line number Diff line change 7
7
ObjectGetOwnPropertyDescriptor,
8
8
ObjectPrototypeHasOwnProperty,
9
9
MapPrototypeEntries,
10
+ WeakMap,
10
11
WeakMapPrototypeGet,
11
12
uncurryThis,
12
13
} = primordials ;
Original file line number Diff line number Diff line change 7
7
ObjectDefineProperty,
8
8
SafePromise,
9
9
Symbol,
10
+ WeakMap,
10
11
} = primordials ;
11
12
12
13
const { isContext } = internalBinding ( 'contextify' ) ;
You can’t perform that action at this time.
0 commit comments