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

[amp-bind]: Remove (relatively) newer functions from the whitelist. #6459

Merged
merged 5 commits into from
Dec 2, 2016

Conversation

aghassemi
Copy link
Contributor

Tests were failing on Chrome 45 with

  Uncaught TypeError: Cannot read property 'name' of undefined
  at /tmp/504d278b3d2857f5072c7851f8a9da3e.browserify:34916 <- /home/travis/build/ampproject/amphtml/extensions/amp-bind/0.1/bind-expr-impl.js:433:6

root cause was Chrome 45 not supporting Array.prototype.includes

I suggest we should remove (relatively) newer functions that are not supported in Safari 8/Chrome 40s from the whitelist.

(another options is to do this based on browser support in which case bind expressions may or may not evaluate depending on the browser, but I argue this breaks AMP's cross-browser compatibility promise)

@aghassemi
Copy link
Contributor Author

/to @choumx
/cc @jridgewell @dvoytenko for thoughts on not supporting includes and repeat

@aghassemi
Copy link
Contributor Author

(high-priority PR 🔥 since it is fixing the master build)

Copy link

@dreamofabear dreamofabear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

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.

2 participants