Skip to content

Commit

Permalink
url: use SetMethodNoSideEffect for url functions
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Feb 27, 2023
1 parent 32a3e47 commit 7440a78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node_url.cc
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ void Initialize(Local<Object> target,
Local<Value> unused,
Local<Context> context,
void* priv) {
SetMethod(context, target, "parse", Parse);
SetMethod(context, target, "updateUrl", UpdateUrl);
SetMethod(context, target, "formatUrl", FormatUrl);
SetMethodNoSideEffect(context, target, "parse", Parse);
SetMethodNoSideEffect(context, target, "updateUrl", UpdateUrl);
SetMethodNoSideEffect(context, target, "formatUrl", FormatUrl);

SetMethodNoSideEffect(context, target, "domainToASCII", DomainToASCII);
SetMethodNoSideEffect(context, target, "domainToUnicode", DomainToUnicode);
Expand Down

0 comments on commit 7440a78

Please sign in to comment.