Skip to content

Commit 547c284

Browse files
cleong-tcMylesBorins
authored andcommitted
test: replace string concatenation with templates
PR-URL: #15903 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent a625d82 commit 547c284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-whatwg-url-parsing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ for (const test of failureTests) {
3636
return false;
3737

3838
// The input could be processed, so we don't do strict matching here
39-
const match = (error + '').match(/Invalid URL: (.*)$/);
39+
const match = (`${error}`).match(/Invalid URL: (.*)$/);
4040
if (!match) {
4141
return false;
4242
}

0 commit comments

Comments
 (0)