Bug 923390 - Fix assertion failure in getpda() shell function r=sfink

This commit is contained in:
Jon Coppeard 2013-10-07 13:40:44 +01:00
parent 9546f698c5
commit 92ea6ea13d
2 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1,3 @@
if (getpda) {
getpda();
}

View File

@ -2397,7 +2397,7 @@ GetPDA(JSContext *cx, unsigned argc, jsval *vp)
JSPropertyDesc *pd;
CallArgs args = CallArgsFromVp(argc, vp);
if (!JS_ValueToObject(cx, args[0], &vobj))
if (!JS_ValueToObject(cx, args.get(0), &vobj))
return false;
if (!vobj) {
args.rval().setUndefined();