summaryrefslogtreecommitdiff
path: root/js/url_search_params.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/url_search_params.ts')
-rw-r--r--js/url_search_params.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/url_search_params.ts b/js/url_search_params.ts
index 1b4461ed2..9f4621b7b 100644
--- a/js/url_search_params.ts
+++ b/js/url_search_params.ts
@@ -32,7 +32,7 @@ export class URLSearchParams {
*/
append(name: string, value: string): void {
requiredArguments("URLSearchParams.append", arguments.length, 2);
- this.params.push([String(name), value]);
+ this.params.push([String(name), String(value)]);
}
/** Deletes the given search parameter and its associated value,
@@ -112,6 +112,7 @@ export class URLSearchParams {
// set the value of the first such name-value pair to value
// and remove the others.
name = String(name);
+ value = String(value);
let found = false;
let i = 0;
while (i < this.params.length) {