-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
馃彈 Add a default assignment aliasing transform #30250
馃彈 Add a default assignment aliasing transform #30250
Conversation
Hey @erwinmombay! These files were changed:
|
...efault-assignment/test/fixtures/transform-assertions/should-transform-destructures/output.js
Outdated
Show resolved
Hide resolved
...efault-assignment/test/fixtures/transform-assertions/should-transform-destructures/output.js
Outdated
Show resolved
Hide resolved
@@ -243,7 +243,8 @@ class AmpCarousel extends AMP.BaseElement { | |||
* actionSource: (!ActionSource|undefined), | |||
* }=} options | |||
*/ | |||
goToSlide(index, {smoothScroll = false, actionSource} = {}) { | |||
goToSlide(index, options = {}) { | |||
const {smoothScroll = false, actionSource} = options; |
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.
Could you clarify why this again?
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.
The @param
is named, and it's too difficult to figure out what that is when creating the binding. If it's not named properly, we closure will complain throw.
...efault-assignment/test/fixtures/transform-assertions/should-transform-destructures/output.js
Outdated
Show resolved
Hide resolved
* Add a default assignment aliasing transform Fixes ampproject#29293 * Only transform parameter default assignments * Lint * Lint
Fixes #29293