mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Bug 838146 followup: address missed review comments. r=bholley
This commit is contained in:
parent
53cee71509
commit
7d96fe6e38
@ -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;
|
||||
|
@ -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;"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user