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

Restrict the number of global replacements variable #19233

Merged
merged 2 commits into from Nov 12, 2018

Conversation

zhouyx
Copy link
Contributor

@zhouyx zhouyx commented Nov 10, 2018

As we agreed, need a test to restrict the number of global replacements variables.

// Restrict the number of replacement params to globalVaraibleSource
// Please consider adding the logic to amp-analytics instead.
// Please contact @lannka or @zhouyx if the test fail.
expect(variables).to.have.lengthOf.within(0, 69);
Copy link
Contributor

Choose a reason for hiding this comment

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

let's make it exactly equal.
so we timely reduce the size when we move things out.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. Done

@zhouyx zhouyx merged commit 36bedc6 into ampproject:master Nov 12, 2018
@zhouyx zhouyx deleted the restrict-size branch November 12, 2018 16:51
Enriqe pushed a commit to Enriqe/amphtml that referenced this pull request Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants