components / jquery

Shim repository for jQuery.

Home Page:http://jquery.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minified source of 1.11 contains a syntax error

bergus opened this issue · comments

Try to execute https://github.com/components/jquery/blob/46977563948f37b5d37cc86e11a2540d9e58f5db/jquery.min.js in strict mode, and it will fail with a Syntax error: FunctionDeclaration in Statement context. (If you're not sure what that means, have a look at this StackOverflow question).

Since I'm not familiar with the build process of this file, this might either be a bug in the minifier, or wrong usage of the minifier, and might not originate in this repositiory at all; however this is to where I could track it down.
The first case actually seems likely, since the non-minified file as well as the original source are fine.

I'm looking forward to your expertise about where this bug stems from!

@bergus minified version is 1:1 provided by jquery (http://code.jquery.com/jquery-1.11.1.min.js). We did not modified anything from the original source.

If you're having issues with jquery, you should ask your questions directly to them, we only provide the source itself without support.

OK, thank you, the confusion was because the jQuery repository does not include their actual builds.

of course they do: https://github.com/jquery/jquery/releases. Choose a tag and checkout the dist-directory.

Ah, right, I didn't check the tags - thank you! Their master branch(es) don't contain the dist folder :-(

For future reference: http://bugs.jquery.com/ticket/15179