From 25b6ddf664d7fc466b6dff4fe438233a28df65b0 Mon Sep 17 00:00:00 2001 From: "Node.js GitHub Bot" Date: Tue, 25 Apr 2023 01:47:50 +0100 Subject: deps: update ada to 2.2.0 PR-URL: https://github.com/nodejs/node/pull/47678 Reviewed-By: Yagiz Nizipli Reviewed-By: Benjamin Gruenbaum --- src/node_url.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/node_url.cc b/src/node_url.cc index e8df279626..02f9e58097 100644 --- a/src/node_url.cc +++ b/src/node_url.cc @@ -161,7 +161,7 @@ void BindingData::Format(const FunctionCallbackInfo& args) { Isolate* isolate = env->isolate(); Utf8Value href(isolate, args[0].As()); - const bool fragment = args[1]->IsTrue(); + const bool hash = args[1]->IsTrue(); const bool unicode = args[2]->IsTrue(); const bool search = args[3]->IsTrue(); const bool auth = args[4]->IsTrue(); @@ -172,8 +172,8 @@ void BindingData::Format(const FunctionCallbackInfo& args) { auto out = ada::parse(href.ToStringView()); CHECK(out); - if (!fragment) { - out->fragment = std::nullopt; + if (!hash) { + out->hash = std::nullopt; } if (unicode) { -- cgit v1.2.1