Skip to content
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

web-animations-next-lite.min.js: Type error and total meltdown in strict mode. #402

Open
jklein24 opened this issue Aug 21, 2015 · 5 comments

Comments

@jklein24
Copy link

If minified web-animations-js is run with 'use strict' at the top of the file, there is an error:

Uncaught TypeError: Cannot set property 'true' of undefined

coming from https://github.com/web-animations/web-animations-js/blob/master/web-animations-next-lite.min.js#L15. This is due to the fact that a global "this" is undefined in strict mode, rather than the window. The iife is called like:

function(a, b) { b["true"] = ...... } ({}, function {return this}())

@web-padawan
Copy link

web-padawan commented Jun 4, 2016

Is there any progress?
We still need to disable strict mode when using babel with es2015 preset 👎

@rubenstolk
Copy link

+1

@abusada
Copy link

abusada commented Aug 31, 2016

+1

@julien-andre
Copy link

+1

@kEpEx
Copy link

kEpEx commented May 9, 2019

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants