-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[plugin-proposal-class-properties] Fix small loose docs typo #6941
Conversation
@@ -98,7 +98,7 @@ When `true`, class properties are compiled to use an assignment expression inste | |||
} | |||
``` | |||
|
|||
Without `{ "loose": true }`, the above code will compile to the following, using `Object.definePropery`: | |||
Without `{ "loose": false }`, the above code will compile to the following, using `Object.definePropery`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Without { "loose": true }
" seems correct, as in... when not in loose mode, it will use Object.defineProperty.
The real typo is Object.definePropery
-> Object.defineProperty
:)
Mind fixing/updating?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you wouldn't use loose false, it is describing the default behavior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@existentialism Updated 👍
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/6045/ |
@sdgluck thanks! |
No description provided.