Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz

MozReview-Commit-ID: KNbxVcCVqts
This commit is contained in:
Kaku Kuo
2016-08-09 17:15:13 +08:00
parent beb3e65fa4
commit bcb7169ac7
24 changed files with 46 additions and 46 deletions

View File

@@ -5736,7 +5736,7 @@ HTMLMediaElement::SetMediaKeys(mozilla::dom::MediaKeys* aMediaKeys,
// 1. If mediaKeys and the mediaKeys attribute are the same object,
// return a resolved promise.
if (mMediaKeys == aMediaKeys) {
promise->MaybeResolve(JS::UndefinedHandleValue);
promise->MaybeResolveWithUndefined();
return promise.forget();
}
@@ -5822,7 +5822,7 @@ HTMLMediaElement::SetMediaKeys(mozilla::dom::MediaKeys* aMediaKeys,
// 5.5 Let this object's attaching media keys value be false.
// 5.6 Resolve promise.
promise->MaybeResolve(JS::UndefinedHandleValue);
promise->MaybeResolveWithUndefined();
// 6. Return promise.
return promise.forget();