Closed Bug 1223004 Opened 9 years ago Closed 9 years ago

Some Gaia unit tests misuse Promise static methods

Categories

(Firefox OS Graveyard :: Gaia, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.5?)

RESOLVED FIXED
FxOS-S11 (13Nov)
blocking-b2g 2.5?

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

In Gecko right now, Promise.resolve.call(undefined, foo) has the same behavior as Promise.resolve.call(Promise, foo), and some Gaia tests rely on that. However per spec the former should throw while the latter should work. As a result, fixing bug 1170760 breaks Gaia unit tests.
Attachment #8684914 - Flags: review?(timdream)
Attachment #8684914 - Flags: review?(timdream) → review+
Thanks bz!
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S11 (13Nov)
[Blocking Requested - why for this release]: v2.5 would probably need this patch to fix the test failure, too.
blocking-b2g: --- → 2.5?
Flags: needinfo?(cbook)
@Tim, Would this Promise misusage issue affect Gaia v2.5 ? If yes, it may need to be uplifted to v2.5. Could you take a look at it? thank you.
Flags: needinfo?(timdream)
Bug 1170760 only reaches Gecko 45, so it should not affect v2.5, I think.
Assignee: nobody → bzbarsky
Flags: needinfo?(timdream)
would need approval for 2.5
Flags: needinfo?(mpotharaju)
Flags: needinfo?(jocheng)
Flags: needinfo?(cbook)
As it doesn't affect 2.5. We do not need a 2.5 uplift. Thanks
Flags: needinfo?(mpotharaju)
Agree with Mahe
Flags: needinfo?(jocheng)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: