Closed Bug 768684 Opened 8 years ago Closed 8 years ago
Fix sequence<any> return type in Web
The codegen check for type any before checking for sequence, we need to invert that.
Attachment #636908 - Flags: review?(bzbarsky)
Comment on attachment 636908 [details] [diff] [review] v1 Hmm. Does tag() on sequences forward on to the inner? That seems bogus to me (and in fact there's an XXX comment by Kyle about it). This also means that isAny() returns true for sequence<any>, which is broken. And I guess isObject() and isDate() have similar problems. I would prefer we just fix isAny() to work correctly and use it here. For now we can just check |not self.isSequence()| in there in addition to the tag check (and similar for isDate() and isObject()), but we should really just fix the tag() on sequence behavior....
Attachment #636908 - Flags: review?(bzbarsky) → review-
Attachment #655679 - Flags: review?(bzbarsky)
Comment on attachment 655679 [details] [diff] [review] v2 r=me
Attachment #655679 - Flags: review?(bzbarsky) → review+
Target Milestone: --- → mozilla18
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.