Skip to main content

Bug Tracker

Side navigation

#13809 closed bug (fixed)

Opened April 22, 2013 02:37PM UTC

Closed April 24, 2013 01:07PM UTC

Closure Compiler/YUI Compressor fail

Reported by: Owned by: gibson042
Priority: undecided Milestone: 2.0.1
Component: attributes Version: 2.0.0
Keywords: Cc:
Blocked by: Blocking:


Go to :

And paste the jQuery 2.0 source code -- there is a "Missing name after . operator" error.


This is also seen in the command line versions of both Closure Compiler and YUI Compressor.

This occurs because neither Closure Compiler nor YUI Compressor support reserved words as property names, so "Sizzle.selectors.match.boolean" throws an error.

Attachments (0)
Change History (4)

Changed April 22, 2013 03:23PM UTC by gibson042 comment:1

component: unfiledattributes
status: newopen

boolean hasn't been reserved since ECMA-262 3rd edition, which I guess puts us in exactly the same boat as #12158 ("throws"). Any preference from the peanut gallery on Sizzle.selectors.match["boolean"] vs. Sizzle.selectors.match.bool?

Changed April 22, 2013 04:17PM UTC by dmethvin comment:2

milestone: None2.0.1

Let's change "boolean" to "bool" per the meeting.

Changed April 23, 2013 01:42AM UTC by gibson042 comment:3

owner: → gibson042
status: openassigned

Changed April 24, 2013 01:07PM UTC by Richard Gibson comment:4

resolution: → fixed
status: assignedclosed

Fix #13809: Avoid collisions with words reserved by any version of ECMA-262

Changeset: ad71f47b27f463c6952768c5ab2773ae15ffa745