Bug 838146 followup: address missed review comments. r=bholley

This commit is contained in:
Boris Zbarsky 2013-07-16 01:39:49 -04:00
parent 53cee71509
commit 7d96fe6e38
2 changed files with 2 additions and 2 deletions

View File

@ -4660,7 +4660,7 @@ nsNavigatorSH::NewResolve(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JS::Rooted<JSObject*> obj(cx, aObj);
JS::Rooted<jsid> id(cx, aId);
nsCOMPtr<nsIDOMNavigator> navigator = do_QueryWrappedNative(wrapper);
JS::Rooted<JS::Value> value(cx);
JS::Rooted<JS::Value> value(cx, JS::UndefinedValue());
if (!static_cast<Navigator*>(navigator.get())->DoNewResolve(cx, obj, id,
&value)) {
return NS_ERROR_FAILURE;

View File

@ -6683,7 +6683,7 @@ class CGResolveOwnPropertyViaNewresolve(CGAbstractBindingMethod):
" return false;\n"
"}\n"
"if (!value.isUndefined()) {\n"
" FillPropertyDescriptor(desc, wrapper, value, false);\n"
" FillPropertyDescriptor(desc, wrapper, value, /* readonly = */ false);\n"
"}\n"
"return true;"))