File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ const {
15
15
Float64Array,
16
16
NumberMAX_SAFE_INTEGER,
17
17
ObjectFreeze,
18
+ ObjectDefineProperty,
18
19
ReflectApply,
19
20
RegExpPrototypeExec,
20
21
SafeArrayIterator,
@@ -371,9 +372,15 @@ function buildAllowedFlags() {
371
372
return SetPrototypeValues ( this [ kInternal ] . set ) ;
372
373
}
373
374
}
374
- NodeEnvironmentFlagsSet . prototype . keys =
375
- NodeEnvironmentFlagsSet . prototype [ SymbolIterator ] =
376
- NodeEnvironmentFlagsSet . prototype . values ;
375
+ const flagSetValues = NodeEnvironmentFlagsSet . prototype . values ;
376
+ ObjectDefineProperty ( NodeEnvironmentFlagsSet . prototype , SymbolIterator , {
377
+ __proto__ : null ,
378
+ value : flagSetValues ,
379
+ } ) ;
380
+ ObjectDefineProperty ( NodeEnvironmentFlagsSet . prototype , 'keys' , {
381
+ __proto__ : null ,
382
+ value : flagSetValues ,
383
+ } ) ;
377
384
378
385
ObjectFreeze ( NodeEnvironmentFlagsSet . prototype . constructor ) ;
379
386
ObjectFreeze ( NodeEnvironmentFlagsSet . prototype ) ;
You can’t perform that action at this time.
0 commit comments