Skip to content

Commit 6fc393b

Browse files
committed
url: use SetMethodNoSideEffect for url functions
1 parent 09e59b0 commit 6fc393b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node_url.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ void Initialize(Local<Object> target,
311311
Local<Value> unused,
312312
Local<Context> context,
313313
void* priv) {
314-
SetMethod(context, target, "parse", Parse);
315-
SetMethod(context, target, "updateUrl", UpdateUrl);
316-
SetMethod(context, target, "formatUrl", FormatUrl);
314+
SetMethodNoSideEffect(context, target, "parse", Parse);
315+
SetMethodNoSideEffect(context, target, "updateUrl", UpdateUrl);
316+
SetMethodNoSideEffect(context, target, "formatUrl", FormatUrl);
317317

318318
SetMethodNoSideEffect(context, target, "domainToASCII", DomainToASCII);
319319
SetMethodNoSideEffect(context, target, "domainToUnicode", DomainToUnicode);

0 commit comments

Comments
 (0)