We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5cd6c4 commit 7438c55Copy full SHA for 7438c55
js/xpconnect/loader/URLPreloader.h
@@ -153,7 +153,6 @@ class URLPreloader final : public nsIMemoryReporter {
153
explicit CacheKey(nsIFile* file) : mType(TypeFile) {
154
nsString path;
155
MOZ_ALWAYS_SUCCEEDS(file->GetPath(path));
156
- MOZ_DIAGNOSTIC_ASSERT(path.Length() > 0);
157
CopyUTF16toUTF8(path, mPath);
158
}
159
@@ -163,7 +162,6 @@ class URLPreloader final : public nsIMemoryReporter {
163
162
template <typename Buffer>
164
void Code(Buffer& buffer) {
165
buffer.codeUint8(*reinterpret_cast<uint8_t*>(&mType));
166
- MOZ_DIAGNOSTIC_ASSERT(mPath.Length() > 0);
167
buffer.codeString(mPath);
168
169
0 commit comments