@@ -44,8 +44,7 @@ assert.strictEqual(url.searchParams, oldParams); // [SameObject]
4444// non-writable property should throw.
4545// Note: this error message is subject to change in V8 updates
4646assert . throws ( ( ) => url . origin = 'http://foo.bar.com:22' ,
47- new RegExp ( 'TypeError: Cannot set property origin of' +
48- ' \\[object URL\\] which has only a getter' ) ) ;
47+ / T y p e E r r o r : C a n n o t s e t p r o p e r t y o r i g i n o f \[ o b j e c t U R L \] w h i c h h a s o n l y a g e t t e r $ / ) ;
4948assert . strictEqual ( url . origin , 'http://foo.bar.com:21' ) ;
5049assert . strictEqual ( url . toString ( ) ,
5150 'http://user:[email protected] :21/aaa/zzz?l=25#test' ) ; @@ -120,8 +119,7 @@ assert.strictEqual(url.hash, '#abcd');
120119// non-writable property should throw.
121120// Note: this error message is subject to change in V8 updates
122121assert . throws ( ( ) => url . searchParams = '?k=88' ,
123- new RegExp ( 'TypeError: Cannot set property searchParams of' +
124- ' \\[object URL\\] which has only a getter' ) ) ;
122+ / ^ T y p e E r r o r : C a n n o t s e t p r o p e r t y s e a r c h P a r a m s o f \[ o b j e c t U R L \] w h i c h h a s o n l y a g e t t e r $ / ) ;
125123assert . strictEqual ( url . searchParams , oldParams ) ;
126124assert . strictEqual ( url . toString ( ) ,
127125 'https://user2:[email protected] :23/aaa/bbb?k=99#abcd' ) ;
0 commit comments