Bug 876776 - Do not crash when dumping a NULL object, r=terrence

--HG--
extra : rebase_source : 01e96eb326c42b62b49251dce5dac7e2fbc031b5
This commit is contained in:
Steve Fink 2013-06-04 12:14:17 -07:00
parent 1c27bfb0ec
commit b22e1776a4

View File

@ -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();
}