@@ -43,6 +43,7 @@ const {
4343 getConstructorOf,
4444 removeColors,
4545 toUSVString,
46+ kEnumerableProperty,
4647} = require ( 'internal/util' ) ;
4748
4849const {
@@ -507,18 +508,18 @@ class URLSearchParams {
507508}
508509
509510ObjectDefineProperties ( 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 ,
522523 [ SymbolToStringTag ] : { configurable : true , value : 'URLSearchParams' } ,
523524
524525 // https://heycam.github.io/webidl/#es-iterable-entries
@@ -982,20 +983,20 @@ class URL {
982983ObjectDefineProperties ( URL . prototype , {
983984 [ kFormat ] : { configurable : false , writable : false } ,
984985 [ 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 ,
9991000} ) ;
10001001
10011002function update ( url , params ) {
0 commit comments