mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
Bug 876776 - Do not crash when dumping a NULL object, r=terrence
--HG-- extra : rebase_source : 01e96eb326c42b62b49251dce5dac7e2fbc031b5
This commit is contained in:
parent
1c27bfb0ec
commit
b22e1776a4
@ -635,6 +635,10 @@ js_DumpChars(const jschar *s, size_t n)
|
|||||||
JS_FRIEND_API(void)
|
JS_FRIEND_API(void)
|
||||||
js_DumpObject(JSObject *obj)
|
js_DumpObject(JSObject *obj)
|
||||||
{
|
{
|
||||||
|
if (!obj) {
|
||||||
|
fprintf(stderr, "NULL\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
obj->dump();
|
obj->dump();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user