New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax errors in minified sources #1779

mgol opened this Issue Oct 21, 2014 · 3 comments


None yet
3 participants

mgol commented Oct 21, 2014

Originally reported by Bergi at:

Both current versions ( 2.1.1,  1.11.1) have syntactic errors in their minified distribution files which prevents compilation in strict mode. Try to execute them when prefixed by "use strict":

Syntax error: FunctionDeclaration in Statement context

(If you're not sure what that means, have a look at  this StackOverflow question).

I'm not familiar with the build process, this might either be a bug in the minifier, or wrong usage of the minifier, or some problems with the custom build process of jQuery. If it's not your fault, please file an upstream bug with the used minifier.


This comment has been minimized.


silverwind commented Oct 23, 2014

I encountered this too.


This comment has been minimized.


dmethvin commented Oct 24, 2014

jQuery isn't meant to be run with "use strict" in effect. See the comment at the top of the unminified file for the reason, or look at for more information. You are not gaining anything by attempting to force jQuery into strict mode against its will, doing so prevents interoperability with any third-party libraries that are not use-strict compatible.


This comment has been minimized.


silverwind commented Oct 24, 2014

Thanks for the explanation! I guess you can close this issue as wontfix.

@dmethvin dmethvin closed this Oct 24, 2014

@lock lock bot locked as resolved and limited conversation to collaborators Jun 20, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.