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

Eliminate the use of Object.values() #12686

Merged
merged 1 commit into from Jan 7, 2018
Merged

Eliminate the use of Object.values() #12686

merged 1 commit into from Jan 7, 2018

Conversation

rsimha
Copy link
Contributor

@rsimha rsimha commented Jan 6, 2018

Fixes the error seen in the Travis jobs from #12679

TypeError: Object.values is not a function
    at Gulp.checkTypes (/home/travis/build/ampproject/amphtml/gulpfile.js:702:30)

See https://travis-ci.org/ampproject/amphtml/jobs/325672590#L730

@rsimha rsimha self-assigned this Jan 6, 2018
@rsimha
Copy link
Contributor Author

rsimha commented Jan 6, 2018

/to @jridgewell @erwinmombay

@rsimha rsimha requested a review from cramforce January 6, 2018 02:14
@rsimha
Copy link
Contributor Author

rsimha commented Jan 6, 2018

/to @cramforce This is necessary to unblock #12679

@rsimha rsimha merged commit 80ec23b into ampproject:master Jan 7, 2018
@rsimha rsimha deleted the 2018-01-05-ObjectValues branch January 7, 2018 21:37
@@ -479,8 +479,12 @@ describe('Google A4A utils', () => {
});
const ampAdElem = env.win.document.createElement('amp-ad');
prevContainer.appendChild(ampAdElem);
const ValidAdContainerTypeValues =
Object.keys(ValidAdContainerTypes).map(function(key) {
Copy link
Member

Choose a reason for hiding this comment

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

camelCase

Copy link
Member

Choose a reason for hiding this comment

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

nvm, guess it was already PascalCase prior to changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, didn't want to edit the rest of the file for this fix.

gzgogo pushed a commit to gzgogo/amphtml that referenced this pull request Jan 26, 2018
RanAbram pushed a commit to RanAbram/amphtml that referenced this pull request Mar 12, 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