File tree Expand file tree Collapse file tree 7 files changed +9
-0
lines changed Expand file tree Collapse file tree 7 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 2929 message : " Use `const { Reflect } = primordials;` instead of the global."
3030 - name : Symbol
3131 message : " Use `const { Symbol } = primordials;` instead of the global."
32+ - name : WeakMap
33+ message : " Use `const { WeakMap } = primordials;` instead of the global."
3234 no-restricted-syntax :
3335 # Config copied from .eslintrc.js
3436 - error
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ const {
1515 ReflectOwnKeys,
1616 Symbol,
1717 SymbolHasInstance,
18+ WeakMap,
1819} = primordials ;
1920
2021const { trace } = internalBinding ( 'trace_events' ) ;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const {
1818 ObjectKeys,
1919 Symbol,
2020 SymbolFor,
21+ WeakMap,
2122} = primordials ;
2223
2324const messages = new Map ( ) ;
Original file line number Diff line number Diff line change 22
33const {
44 ObjectDefineProperty,
5+ WeakMap,
56} = primordials ;
67
78const {
Original file line number Diff line number Diff line change 77 ObjectGetOwnPropertyDescriptor,
88 ObjectPrototypeHasOwnProperty,
99 MapPrototypeEntries,
10+ WeakMap,
1011 WeakMapPrototypeGet,
1112 uncurryThis,
1213} = primordials ;
Original file line number Diff line number Diff line change 66 ObjectDefineProperty,
77 SafePromise,
88 Symbol,
9+ WeakMap,
910} = primordials ;
1011
1112const { isContext } = internalBinding ( 'contextify' ) ;
Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ const {
5858 Promise,
5959 PromiseRace,
6060 Symbol,
61+ WeakMap,
62+ WeakSet,
6163} = primordials ;
6264
6365const {
You can’t perform that action at this time.
0 commit comments