@@ -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 {
@@ -507,18 +508,18 @@ class URLSearchParams {
507
508
}
508
509
509
510
ObjectDefineProperties ( URLSearchParams . prototype , {
510
- append : { enumerable : true } ,
511
- delete : { enumerable : true } ,
512
- get : { enumerable : true } ,
513
- getAll : { enumerable : true } ,
514
- has : { enumerable : true } ,
515
- set : { enumerable : true } ,
516
- sort : { enumerable : true } ,
517
- entries : { enumerable : true } ,
518
- forEach : { enumerable : true } ,
519
- keys : { enumerable : true } ,
520
- values : { enumerable : true } ,
521
- toString : { enumerable : true } ,
511
+ append : kEnumerableProperty ,
512
+ delete : kEnumerableProperty ,
513
+ get : kEnumerableProperty ,
514
+ getAll : kEnumerableProperty ,
515
+ has : kEnumerableProperty ,
516
+ set : kEnumerableProperty ,
517
+ sort : kEnumerableProperty ,
518
+ entries : kEnumerableProperty ,
519
+ forEach : kEnumerableProperty ,
520
+ keys : kEnumerableProperty ,
521
+ values : kEnumerableProperty ,
522
+ toString : kEnumerableProperty ,
522
523
[ SymbolToStringTag ] : { configurable : true , value : 'URLSearchParams' } ,
523
524
524
525
// https://heycam.github.io/webidl/#es-iterable-entries
@@ -982,20 +983,20 @@ class URL {
982
983
ObjectDefineProperties ( URL . prototype , {
983
984
[ kFormat ] : { configurable : false , writable : false } ,
984
985
[ SymbolToStringTag ] : { configurable : true , value : 'URL' } ,
985
- toString : { enumerable : true } ,
986
- href : { enumerable : true } ,
987
- origin : { enumerable : true } ,
988
- protocol : { enumerable : true } ,
989
- username : { enumerable : true } ,
990
- password : { enumerable : true } ,
991
- host : { enumerable : true } ,
992
- hostname : { enumerable : true } ,
993
- port : { enumerable : true } ,
994
- pathname : { enumerable : true } ,
995
- search : { enumerable : true } ,
996
- searchParams : { enumerable : true } ,
997
- hash : { enumerable : true } ,
998
- toJSON : { enumerable : true } ,
986
+ toString : kEnumerableProperty ,
987
+ href : kEnumerableProperty ,
988
+ origin : kEnumerableProperty ,
989
+ protocol : kEnumerableProperty ,
990
+ username : kEnumerableProperty ,
991
+ password : kEnumerableProperty ,
992
+ host : kEnumerableProperty ,
993
+ hostname : kEnumerableProperty ,
994
+ port : kEnumerableProperty ,
995
+ pathname : kEnumerableProperty ,
996
+ search : kEnumerableProperty ,
997
+ searchParams : kEnumerableProperty ,
998
+ hash : kEnumerableProperty ,
999
+ toJSON : kEnumerableProperty ,
999
1000
} ) ;
1000
1001
1001
1002
function update ( url , params ) {
0 commit comments