зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1283712 - Part 10: Support notes in getLastWarning shell-only testing function. r=jwalden
This commit is contained in:
Родитель
0ea7ee57fa
Коммит
f4e61b592f
|
@ -6590,6 +6590,14 @@ CreateLastWarningObject(JSContext* cx, JSErrorReport* report)
|
|||
if (!DefineProperty(cx, warningObj, cx->names().columnNumber, columnVal))
|
||||
return false;
|
||||
|
||||
RootedObject notesArray(cx, CreateErrorNotesArray(cx, report));
|
||||
if (!notesArray)
|
||||
return false;
|
||||
|
||||
RootedValue notesArrayVal(cx, ObjectValue(*notesArray));
|
||||
if (!DefineProperty(cx, warningObj, cx->names().notes, notesArrayVal))
|
||||
return false;
|
||||
|
||||
GetShellContext(cx)->lastWarning.setObject(*warningObj);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -241,6 +241,7 @@
|
|||
macro(noFilename, noFilename, "noFilename") \
|
||||
macro(nonincrementalReason, nonincrementalReason, "nonincrementalReason") \
|
||||
macro(noStack, noStack, "noStack") \
|
||||
macro(notes, notes, "notes") \
|
||||
macro(NumberFormat, NumberFormat, "NumberFormat") \
|
||||
macro(NumberFormatFormatToParts, NumberFormatFormatToParts, "Intl_NumberFormat_formatToParts") \
|
||||
macro(numeric, numeric, "numeric") \
|
||||
|
|
Загрузка…
Ссылка в новой задаче