зеркало из https://github.com/mozilla/gecko-dev.git
Bug 838146 followup: address missed review comments. r=bholley
This commit is contained in:
Родитель
53cee71509
Коммит
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;"))
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче