Bug 334196 nsXPCWrappedJSClass::GetNamedPropertyAsVariant returns an unitialized value when JS_ValueToId fails

r=jst sr=jst


git-svn-id: svn://10.0.0.236/trunk@196122 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org
2006-05-06 22:37:05 +00:00
parent d951613231
commit ae98ea92d0

View File

@@ -311,7 +311,7 @@ nsXPCWrappedJSClass::GetNamedPropertyAsVariant(XPCCallContext& ccx,
JSContext* cx = ccx.GetJSContext();
JSBool ok;
jsid id;
nsresult rv;
nsresult rv = NS_ERROR_FAILURE;
AutoScriptEvaluate scriptEval(cx);
scriptEval.StartEvaluating();