diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-04-03 18:12:38 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-03 18:12:38 +0530 |
commit | 1f7dd5eda9b5e17ff102abb4dce1f19a4ce76688 (patch) | |
tree | 4e4463a211d877188f242b83cbe44d09fa829386 /ext/url/00_url.js | |
parent | a6e4b4297d840e9cfe4bdf373f24da8202f58e2d (diff) |
chore(ext/url): cleanup url ops (#14177)
Diffstat (limited to 'ext/url/00_url.js')
-rw-r--r-- | ext/url/00_url.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/url/00_url.js b/ext/url/00_url.js index b83cdd17d..ab3488455 100644 --- a/ext/url/00_url.js +++ b/ext/url/00_url.js @@ -30,15 +30,15 @@ const _urlObject = Symbol("url object"); // WARNING: must match rust code's UrlSetter::* - const SET_HASH = 1; - const SET_HOST = 2; - const SET_HOSTNAME = 3; - const SET_PASSWORD = 4; - const SET_PATHNAME = 5; - const SET_PORT = 6; - const SET_PROTOCOL = 7; - const SET_SEARCH = 8; - const SET_USERNAME = 9; + const SET_HASH = 0; + const SET_HOST = 1; + const SET_HOSTNAME = 2; + const SET_PASSWORD = 3; + const SET_PATHNAME = 4; + const SET_PORT = 5; + const SET_PROTOCOL = 6; + const SET_SEARCH = 7; + const SET_USERNAME = 8; // Helper functions function opUrlReparse(href, setter, value) { |