mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +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_DumpObject(JSObject *obj)
|
||||
{
|
||||
if (!obj) {
|
||||
fprintf(stderr, "NULL\n");
|
||||
return;
|
||||
}
|
||||
obj->dump();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user