| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,9 +58,7 @@ const { | |||
| 58 | 58 | urlToHttpOptions, | |
| 59 | 59 | } = require('internal/url'); | |
| 60 | 60 | ||
| 61 | - const { | ||
| 62 | - formatUrl, | ||
| 63 | - } = internalBinding('url'); | ||
| 61 | + const bindingUrl = internalBinding('url'); | ||
| 64 | 62 | ||
| 65 | 63 | const { getOptionValue } = require('internal/options'); | |
| 66 | 64 | ||
@@ -635,7 +633,7 @@ function urlFormat(urlObject, options) { | |||
| 635 | 633 | } | |
| 636 | 634 | } | |
| 637 | 635 | ||
| 638 | - return formatUrl(urlObject.href, fragment, unicode, search, auth); | ||
| 636 | + return bindingUrl.format(urlObject.href, fragment, unicode, search, auth); | ||
| 639 | 637 | } | |
| 640 | 638 | ||
| 641 | 639 | return Url.prototype.format.call(urlObject); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,8 @@ namespace node { | |||
| 15 | 15 | V(v8_binding_data, v8_utils::BindingData) \ | |
| 16 | 16 | V(blob_binding_data, BlobBindingData) \ | |
| 17 | 17 | V(process_binding_data, process::BindingData) \ | |
| 18 | - V(timers_binding_data, timers::BindingData) | ||
| 18 | + V(timers_binding_data, timers::BindingData) \ | ||
| 19 | + V(url_binding_data, url::BindingData) | ||
| 19 | 20 | ||
| 20 | 21 | #define UNSERIALIZABLE_BINDING_TYPES(V) \ | |
| 21 | 22 | V(http2_binding_data, http2::BindingData) \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,6 +18,7 @@ | |||
| 18 | 18 | #include "node_metadata.h" | |
| 19 | 19 | #include "node_process.h" | |
| 20 | 20 | #include "node_snapshot_builder.h" | |
| 21 | + #include "node_url.h" | ||
| 21 | 22 | #include "node_util.h" | |
| 22 | 23 | #include "node_v8.h" | |
| 23 | 24 | #include "node_v8_platform-inl.h" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments