File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ const {
47
47
SideEffectFreeRegExpPrototypeSymbolReplace,
48
48
} = require ( 'internal/util' ) ;
49
49
50
+ const {
51
+ markTransferMode,
52
+ } = require ( 'internal/worker/js_transferable' ) ;
53
+
50
54
const {
51
55
codes : {
52
56
ERR_ARG_NOT_ITERABLE ,
@@ -326,6 +330,8 @@ class URLSearchParams {
326
330
// Default parameter is necessary to keep URLSearchParams.length === 0 in
327
331
// accordance with Web IDL spec.
328
332
constructor ( init = undefined ) {
333
+ markTransferMode ( this , false , false ) ;
334
+
329
335
if ( init == null ) {
330
336
// Do nothing
331
337
} else if ( typeof init === 'object' || typeof init === 'function' ) {
@@ -761,6 +767,8 @@ class URL {
761
767
#searchParams;
762
768
763
769
constructor ( input , base = undefined ) {
770
+ markTransferMode ( this , false , false ) ;
771
+
764
772
if ( arguments . length === 0 ) {
765
773
throw new ERR_MISSING_ARGS ( 'url' ) ;
766
774
}
Original file line number Diff line number Diff line change 6
6
"fail" : {
7
7
"note" : " We are faking location with a URL object for the sake of the testharness and it has searchParams." ,
8
8
"expected" : [
9
- " searchParams on location object" ,
10
- " URL: no structured serialize/deserialize support" ,
11
- " URLSearchParams: no structured serialize/deserialize support"
9
+ " searchParams on location object"
12
10
]
13
11
}
14
12
},
You can’t perform that action at this time.
0 commit comments