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

Consistently use spaces in object notation; #7808

Merged
merged 1 commit into from Oct 16, 2017

Conversation

jgraham
Copy link
Contributor

@jgraham jgraham commented Oct 16, 2017

This seems to be standard JS style recently (as used in prettier etc.): Use
spaces to separate the { and } from the properties (but not for arrays).

MozReview-Commit-ID: FRkFRwwcJJh

Upstreamed from https://bugzilla.mozilla.org/show_bug.cgi?id=1402170 [ci skip]

This seems to be standard JS style recently (as used in prettier etc.): Use
spaces to separate the { and } from the properties (but not for arrays).

MozReview-Commit-ID: FRkFRwwcJJh

Upstreamed from https://bugzilla.mozilla.org/show_bug.cgi?id=1402170 [ci skip]
@jgraham
Copy link
Contributor Author

jgraham commented Oct 16, 2017

Code reviewed upstream.

@jgraham jgraham merged commit c12724b into master Oct 16, 2017
@jgraham jgraham deleted the sync_ffee39bbb2771cbda38024b4139941e53c520e24 branch October 16, 2017 14:43
@@ -45,7 +45,7 @@

Object.defineProperty(this, testProp, {
get: function() { _propAccessCount++; },
enumerable: true
enumerable: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

@jgraham why no trailing commas in all object literals? Or the inclusion of this one?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Trailing_commas

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