summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPetka Antonov <petka_antonov@hotmail.com>2015-05-02 16:51:22 +0300
committerPetka Antonov <petka_antonov@hotmail.com>2015-05-03 11:26:28 +0300
commitdbdd81a91bdce4cc59163e3be752dc3c53491987 (patch)
tree487d9e9427f0ad87c24908d1ec70cf1c030608f3 /lib
parentb4f58983952fb56262795893b4f7b0482d1256f2 (diff)
downloadandroid-node-v8-dbdd81a91bdce4cc59163e3be752dc3c53491987.tar.gz
android-node-v8-dbdd81a91bdce4cc59163e3be752dc3c53491987.tar.bz2
android-node-v8-dbdd81a91bdce4cc59163e3be752dc3c53491987.zip
url: delete href cache on all setter code paths
PR-URL: https://github.com/iojs/io.js/pull/1589 Fixes: https://github.com/iojs/io.js/issues/1588 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/url.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/url.js b/lib/url.js
index f5edd89333..52c3903876 100644
--- a/lib/url.js
+++ b/lib/url.js
@@ -1041,8 +1041,8 @@ Object.defineProperty(Url.prototype, 'host', {
this._port = -1;
this._hostname = this._host = encodeURIComponent(host);
}
- this._href = '';
}
+ this._href = '';
},
enumerable: true,
configurable: true
@@ -1068,9 +1068,8 @@ Object.defineProperty(Url.prototype, 'hostname', {
this._host = hostname + ':' + this._port;
else
this._host = hostname;
-
- this._href = '';
}
+ this._href = '';
},
enumerable: true,
configurable: true
@@ -1089,8 +1088,8 @@ Object.defineProperty(Url.prototype, 'hash', {
hash = '#' + hash;
}
this._hash = hash;
- this._href = '';
}
+ this._href = '';
},
enumerable: true,
configurable: true
@@ -1114,8 +1113,8 @@ Object.defineProperty(Url.prototype, 'search', {
if (this._parsesQueryStrings) {
this.query = querystring.parse(search.slice(1));
}
- this._href = '';
}
+ this._href = '';
},
enumerable: true,
configurable: true
@@ -1138,8 +1137,8 @@ Object.defineProperty(Url.prototype, 'pathname', {
}
this._pathname = pathname;
- this._href = '';
}
+ this._href = '';
},
enumerable: true,
configurable: true