mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
Fixing bug 383917. The new Components.utils.import code shouldn't spam the console. r=sayrer@gmail.com, sr=brendan@mozilla.com
This commit is contained in:
parent
b7acce844e
commit
5f4f8a101b
@ -1463,7 +1463,11 @@ mozJSComponentLoader::ImportInto(const nsACString & aLocation,
|
||||
return ReportOnCaller(cc, ERROR_GETTING_ARRAY_LENGTH,
|
||||
PromiseFlatCString(aLocation).get());
|
||||
}
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
nsCAutoString logBuffer;
|
||||
#endif
|
||||
|
||||
for (jsuint i = 0; i < symbolCount; ++i) {
|
||||
jsval val;
|
||||
JSString *symbolName;
|
||||
@ -1490,11 +1494,13 @@ mozJSComponentLoader::ImportInto(const nsACString & aLocation,
|
||||
}
|
||||
#ifdef DEBUG
|
||||
if (i == 0) {
|
||||
printf("Installing symbols [ ");
|
||||
logBuffer.AssignLiteral("Installing symbols [ ");
|
||||
}
|
||||
printf("%s ", JS_GetStringBytes(symbolName));
|
||||
logBuffer.Append(JS_GetStringBytes(symbolName));
|
||||
logBuffer.AppendLiteral(" ");
|
||||
if (i == symbolCount - 1) {
|
||||
printf("] from %s\n", PromiseFlatCString(aLocation).get());
|
||||
LOG(("%s] from %s\n", PromiseFlatCString(logBuffer).get(),
|
||||
PromiseFlatCString(aLocation).get()));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user