-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Undefined object reference in v3.4.9 (works fine in 3.4.8) #3257
Comments
Actually better test case (since the original one is a bit arbitrary repeating the same methods).
Produces this output:
Same error. |
I experienced a very similar problem with the following code. It worked in 3.4.8, but broke in 3.4.9. Javascript Input
Uglify Options Default options, with drop_console set to true. Javascript Output
This is trivially broken - notice that s is not assigned a value until you get to the function call itself (ae). |
Lots of reports about this :( See also #3269 (comment) |
fixes mishoo#3245 fixes mishoo#3257 fixes mishoo#3260 fixes mishoo#3269 fixes mishoo#3271 fixes mishoo#3278 fixes mishoo#3309 fixes mishoo#3319 fixes mishoo#3321
Bug report or feature request?
Bug report
Uglify version (
uglifyjs -V
)uglify-js 3.4.9
JavaScript input
The
uglifyjs
CLI command executed orminify()
options used.(But does the same thing with just
--compress
JavaScript output or error produced.
If you execute that with:
it gets an error:
From this line
return o.prop.obj ...
sinceo.prop
hasn't been defined yet.UglifyJS 3.4.8 compiles this fine
The text was updated successfully, but these errors were encountered: