summaryrefslogtreecommitdiffstats
path: root/dom/url
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2019-03-14 14:14:45 +0200
committerJustOff <Off.Just.Off@gmail.com>2019-03-14 14:14:45 +0200
commit0ff4dbff80ddea637b0fb02c885e222ddcfa171a (patch)
treebd5d8534cdb9b7afd2a846406828236653eda417 /dom/url
parentc00255c355ab32f7b19f21e9797a8fb83827d0be (diff)
downloadUXP-0ff4dbff80ddea637b0fb02c885e222ddcfa171a.tar
UXP-0ff4dbff80ddea637b0fb02c885e222ddcfa171a.tar.gz
UXP-0ff4dbff80ddea637b0fb02c885e222ddcfa171a.tar.lz
UXP-0ff4dbff80ddea637b0fb02c885e222ddcfa171a.tar.xz
UXP-0ff4dbff80ddea637b0fb02c885e222ddcfa171a.zip
Use meaningful error message in URLSearchParams::Constructor
Diffstat (limited to 'dom/url')
-rw-r--r--dom/url/URLSearchParams.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/url/URLSearchParams.cpp b/dom/url/URLSearchParams.cpp
index ad23460f3..f762299f8 100644
--- a/dom/url/URLSearchParams.cpp
+++ b/dom/url/URLSearchParams.cpp
@@ -358,7 +358,7 @@ URLSearchParams::Constructor(const GlobalObject& aGlobal,
sp->Append(entry.mKey, entry.mValue);
}
} else {
- MOZ_CRASH("This should not happen.");
+ MOZ_CRASH("URLSearchParams: Invalid string");
}
return sp.forget();