@@ -43,6 +43,7 @@ const {
43
43
getConstructorOf,
44
44
removeColors,
45
45
toUSVString,
46
+ kEnumerableProperty,
46
47
} = require ( 'internal/util' ) ;
47
48
48
49
const {
@@ -517,18 +518,18 @@ class URLSearchParams {
517
518
}
518
519
519
520
ObjectDefineProperties ( URLSearchParams . prototype , {
520
- append : { enumerable : true } ,
521
- delete : { enumerable : true } ,
522
- get : { enumerable : true } ,
523
- getAll : { enumerable : true } ,
524
- has : { enumerable : true } ,
525
- set : { enumerable : true } ,
526
- sort : { enumerable : true } ,
527
- entries : { enumerable : true } ,
528
- forEach : { enumerable : true } ,
529
- keys : { enumerable : true } ,
530
- values : { enumerable : true } ,
531
- toString : { enumerable : true } ,
521
+ append : kEnumerableProperty ,
522
+ delete : kEnumerableProperty ,
523
+ get : kEnumerableProperty ,
524
+ getAll : kEnumerableProperty ,
525
+ has : kEnumerableProperty ,
526
+ set : kEnumerableProperty ,
527
+ sort : kEnumerableProperty ,
528
+ entries : kEnumerableProperty ,
529
+ forEach : kEnumerableProperty ,
530
+ keys : kEnumerableProperty ,
531
+ values : kEnumerableProperty ,
532
+ toString : kEnumerableProperty ,
532
533
[ SymbolToStringTag ] : { configurable : true , value : 'URLSearchParams' } ,
533
534
534
535
// https://heycam.github.io/webidl/#es-iterable-entries
@@ -1044,20 +1045,20 @@ class URL {
1044
1045
ObjectDefineProperties ( URL . prototype , {
1045
1046
[ kFormat ] : { configurable : false , writable : false } ,
1046
1047
[ SymbolToStringTag ] : { configurable : true , value : 'URL' } ,
1047
- toString : { enumerable : true } ,
1048
- href : { enumerable : true } ,
1049
- origin : { enumerable : true } ,
1050
- protocol : { enumerable : true } ,
1051
- username : { enumerable : true } ,
1052
- password : { enumerable : true } ,
1053
- host : { enumerable : true } ,
1054
- hostname : { enumerable : true } ,
1055
- port : { enumerable : true } ,
1056
- pathname : { enumerable : true } ,
1057
- search : { enumerable : true } ,
1058
- searchParams : { enumerable : true } ,
1059
- hash : { enumerable : true } ,
1060
- toJSON : { enumerable : true } ,
1048
+ toString : kEnumerableProperty ,
1049
+ href : kEnumerableProperty ,
1050
+ origin : kEnumerableProperty ,
1051
+ protocol : kEnumerableProperty ,
1052
+ username : kEnumerableProperty ,
1053
+ password : kEnumerableProperty ,
1054
+ host : kEnumerableProperty ,
1055
+ hostname : kEnumerableProperty ,
1056
+ port : kEnumerableProperty ,
1057
+ pathname : kEnumerableProperty ,
1058
+ search : kEnumerableProperty ,
1059
+ searchParams : kEnumerableProperty ,
1060
+ hash : kEnumerableProperty ,
1061
+ toJSON : kEnumerableProperty ,
1061
1062
} ) ;
1062
1063
1063
1064
function update ( url , params ) {
0 commit comments