Skip to content

Conversation

@tempestwood
Copy link

Remove eval in favour of type conversion, then check for isNaN instead of isFinite. This allows the polyfill to run strict mode.

…d of isFinite. This allows the polyfill to run strict mode.
@alancutter
Copy link
Contributor

I'm afraid removing eval() without regressing functionality isn't so easy. parseDimension() can handle arbitrary calc() expressions, see test case: https://github.com/web-animations/web-animations-js/blob/dev/test/js/dimension-handler.js#L19

@iamcarbon
Copy link

Are there any work arounds to move forward with this without regressing? It would be great to add our CSP policy back to forbid eval.

@ewilligers
Copy link
Contributor

ewilligers commented Mar 17, 2017 via email

@ewilligers
Copy link
Contributor

Eval replacement is up for review in #151

@ewilligers ewilligers closed this Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants