mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1289050 - Part 2.1: Use JS_ReportErrorLatin1 in mozJSComponentLoader::LoadModule. r=jwalden
This commit is contained in:
parent
c635ba4f34
commit
f2542c1849
@ -404,8 +404,12 @@ mozJSComponentLoader::LoadModule(FileLocation& aFile)
|
||||
}
|
||||
|
||||
if (JS_TypeOfValue(cx, NSGetFactory_val) != JSTYPE_FUNCTION) {
|
||||
JS_ReportError(cx, "%s has NSGetFactory property that is not a function",
|
||||
spec.get());
|
||||
/*
|
||||
* spec's encoding is ASCII unless it's zip file, otherwise it's
|
||||
* random encoding. Latin1 variant is safe for random encoding.
|
||||
*/
|
||||
JS_ReportErrorLatin1(cx, "%s has NSGetFactory property that is not a function",
|
||||
spec.get());
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user