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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰Remove string.trimStart() from expander #23439

Merged
merged 2 commits into from Jul 22, 2019
Merged

馃悰Remove string.trimStart() from expander #23439

merged 2 commits into from Jul 22, 2019

Conversation

calebcordry
Copy link
Member

@calebcordry calebcordry commented Jul 19, 2019

And introduce new trimStart helper in its place.

Closes #23432

@lannka
Copy link
Contributor

lannka commented Jul 22, 2019

I'm wondering why it was not failing any integration tests. @calebcordry could you take a look?

@jridgewell jridgewell merged commit 0d556ea into ampproject:master Jul 22, 2019
@calebcordry
Copy link
Member Author

@lannka not sure about edge, but looks like trimStart works on Safari even though it is compatibility unknown on mdn.

@lannka
Copy link
Contributor

lannka commented Jul 22, 2019

Could you add an integration test that will cover this code in test/integration/test-amp-pixel.js?

@jridgewell
Copy link
Contributor

https://kangax.github.io/compat-table/es2016plus/#test-string_trimming

Edge doesn't have it, FF got it in 60, and Safari got it in 12.

@calebcordry
Copy link
Member Author

Introduced test in #23466

rindo pushed a commit to logly/amphtml that referenced this pull request Jul 24, 2019
thekorn pushed a commit to edelight/amphtml that referenced this pull request Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: r.trimStart is not a function
4 participants