r=brendan
Bug #21799, uncaught throw of null crash. git-svn-id: svn://10.0.0.236/trunk@56424 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -211,7 +211,7 @@ js_ErrorFromException(JSContext *cx, jsval exn)
|
||||
JSExnPrivate *privateData;
|
||||
jsval private;
|
||||
|
||||
if (!JSVAL_IS_OBJECT(exn))
|
||||
if (JSVAL_IS_PRIMITIVE(exn))
|
||||
return NULL;
|
||||
obj = JSVAL_TO_OBJECT(exn);
|
||||
if (OBJ_GET_CLASS(cx, obj) != &js_ErrorClass)
|
||||
|
||||
Reference in New Issue
Block a user