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 3535 message : " Use `const { Promise } = primordials;` instead of the global."
3636 - name : Reflect
3737 message : " Use `const { Reflect } = primordials;` instead of the global."
38+ - name : RegExp
39+ message : " Use `const { RegExp } = primordials;` instead of the global."
3840 - name : Set
3941 message : " Use `const { Set } = primordials;` instead of the global."
4042 - name : Symbol
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ const {
2525 ObjectAssign,
2626 ObjectDefineProperty,
2727 ObjectSetPrototypeOf,
28+ RegExp,
2829 Symbol,
2930} = primordials ;
3031
Original file line number Diff line number Diff line change 11'use strict' ;
22
33const {
4+ RegExp,
45 Symbol,
56} = primordials ;
67
Original file line number Diff line number Diff line change 55 ObjectDefineProperty,
66 ObjectFreeze,
77 ObjectSeal,
8+ RegExp,
89 RegExpPrototypeExec,
910 RegExpPrototypeTest,
1011 StringPrototypeSlice,
Original file line number Diff line number Diff line change 22
33const { format } = require ( 'internal/util/inspect' ) ;
44
5+ const { RegExp } = primordials ;
6+
57// `debugs` is deliberately initialized to undefined so any call to
68// debuglog() before initializeDebugEnv() is called will throw.
79let debugs ;
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ const {
3535 ObjectPrototypeHasOwnProperty,
3636 ObjectPrototypePropertyIsEnumerable,
3737 ObjectSeal,
38+ RegExp,
3839 RegExpPrototypeToString,
3940 Set,
4041 SetPrototype,
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ const {
5858 ObjectSetPrototypeOf,
5959 Promise,
6060 PromiseRace,
61+ RegExp,
6162 Set,
6263 Symbol,
6364 WeakMap,
You can’t perform that action at this time.
0 commit comments