summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaijiro Wachi <daijiro.wachi@gmail.com>2017-04-12 20:43:22 +0200
committerDaijiro Wachi <daijiro.wachi@gmail.com>2017-04-12 20:43:22 +0200
commiteb0492d51e319eded2f99aa56e1320a498a3a3d5 (patch)
tree6673e995f826c11a0f82c67c2a81ba26b342be34 /lib
parent2ced07ccaf7682b9ec8fb3bcc3dc8d2bb2798c61 (diff)
downloadandroid-node-v8-eb0492d51e319eded2f99aa56e1320a498a3a3d5.tar.gz
android-node-v8-eb0492d51e319eded2f99aa56e1320a498a3a3d5.tar.bz2
android-node-v8-eb0492d51e319eded2f99aa56e1320a498a3a3d5.zip
url: remove javascript URL special case
Fixes: https://github.com/nodejs/node/issues/11485 PR-URL: https://github.com/nodejs/node/pull/12331 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/internal/url.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/internal/url.js b/lib/internal/url.js
index 9a70838c30..74d8de63d9 100644
--- a/lib/internal/url.js
+++ b/lib/internal/url.js
@@ -556,8 +556,6 @@ Object.defineProperties(URL.prototype, {
const ctx = this[context];
// toUSVString is not needed.
hash = `${hash}`;
- if (this.protocol === 'javascript:')
- return;
if (!hash) {
ctx.fragment = null;
ctx.flags &= ~binding.URL_FLAGS_HAS_FRAGMENT;