Bug 869836 - Part 5: Use AssignLiteral instead of Assign where possible. r=ehsan
This commit is contained in:
@@ -603,7 +603,7 @@ NS_ScriptErrorReporter(JSContext *cx,
|
||||
// Print it to stderr as well, for the benefit of those invoking
|
||||
// mozilla with -console.
|
||||
nsAutoCString error;
|
||||
error.Assign("JavaScript ");
|
||||
error.AssignLiteral("JavaScript ");
|
||||
if (JSREPORT_IS_STRICT(report->flags))
|
||||
error.Append("strict ");
|
||||
if (JSREPORT_IS_WARNING(report->flags))
|
||||
|
||||
Reference in New Issue
Block a user