GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: Decorators when `super()` exists and `protoInit` is not needed by liuxingbaoyu · Pull Request #16385 · babel/babel

Conversation

@liuxingbaoyu

@liuxingbaoyu liuxingbaoyu commented Mar 25, 2024

Copy link
Copy Markdown
Member
Q                       A
Fixed Issues? Fixes #16383
Patch: Bug Fix? √
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? √
Documentation PR Link
Any Dependency Changes?
License MIT

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jkonowitch reacted with eyes emoji
All reactions
  • 👀 1 reaction
@liuxingbaoyu liuxingbaoyu added PR: Bug Fix 🐛 A type of pull request used for our changelog categories Spec: Decorators labels Mar 25, 2024
@babel-bot

babel-bot commented Mar 25, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/56579

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@liuxingbaoyu
fix
4b05c2c
@liuxingbaoyu
liuxingbaoyu force-pushed the fix-super-protoInit branch from 4d53402 to 4b05c2c Compare March 25, 2024 18:30
JLHwung
JLHwung reviewed Mar 25, 2024
View reviewed changes
Comment thread packages/babel-plugin-proposal-decorators/test/fixtures/2023-11-misc--to-es2015/super/exec.js Outdated
}
}

const r = new TestChild();

@JLHwung JLHwung Mar 25, 2024

Copy link
Copy Markdown
Contributor

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.

In contrast with initProto-existing-derived-constructor, can you rename this test to initField-existing-derived-constructor?

I suggest we also add some behaviour assertions like we have done in that test.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

liuxingbaoyu reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@liuxingbaoyu liuxingbaoyu Mar 26, 2024

Copy link
Copy Markdown
Member Author

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.

I tried porting all the tests but unfortunately couldn't get them all to work so I just added a simple test.🤦‍♂️

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@JLHwung JLHwung Mar 26, 2024

Copy link
Copy Markdown
Contributor

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.

Can you push the new tests? Even if they are failing, we can still investigate for sure.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@liuxingbaoyu liuxingbaoyu Mar 26, 2024

Copy link
Copy Markdown
Member Author

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.

image
I pushed it, but it doesn't show up on github, I will try force pushing.🤔

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

JLHwung reacted with heart emoji
All reactions
  • ❤️ 1 reaction

@liuxingbaoyu liuxingbaoyu Mar 26, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

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.

I re-added all the tests, but I'm not sure if I tested the behavior well, thanks for the review!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@liuxingbaoyu
review
755ae4e
@liuxingbaoyu
liuxingbaoyu force-pushed the fix-super-protoInit branch from f182cbd to 755ae4e Compare March 26, 2024 14:27
@liuxingbaoyu
more tests
4f1ee84
@liuxingbaoyu
liuxingbaoyu force-pushed the fix-super-protoInit branch from 25c5235 to 4f1ee84 Compare March 26, 2024 14:49
JLHwung
JLHwung approved these changes Mar 26, 2024
View reviewed changes

@JLHwung JLHwung left a comment

Copy link
Copy Markdown
Contributor

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.

Thank you. The new tests look go to me. 👍

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

liuxingbaoyu reacted with heart emoji
All reactions
  • ❤️ 1 reaction
nicolo-ribaudo
nicolo-ribaudo approved these changes Mar 27, 2024
View reviewed changes

@nicolo-ribaudo nicolo-ribaudo left a comment

Copy link
Copy Markdown
Member

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.

Looks good 👍

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

liuxingbaoyu reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@nicolo-ribaudo
nicolo-ribaudo merged commit f0a63db into babel:main Mar 27, 2024
This was referenced May 18, 2024
[Snyk] Upgrade: , tiff-es/fewpjs-getter-and-setter-methods-dc-web-091619#153
Open
[Snyk] Upgrade: , tiff-es/fewpjs-document-onload-dc-web-091619#151
Open
@mdfkbtc mdfkbtc mentioned this pull request May 18, 2024
[Snyk] Upgrade @babel/preset-env from 7.5.0 to 7.24.4 mdfkbtc/veles-mobile-wallet-mdfkbtc#1687
Open
@tiff-es tiff-es mentioned this pull request May 18, 2024
[Snyk] Upgrade: , tiff-es/fewpjs-adding-behavior-with-methods-dc-web-091619#155
Open
@nejidevelops nejidevelops mentioned this pull request May 18, 2024
[Snyk] Upgrade: , nejidevelops/phase-0-intro-to-js-2-looping-code-along#9
Open
@AnushaSalian AnushaSalian mentioned this pull request May 19, 2024
[Snyk] Upgrade: , virtual-labs/ph3-lab-mgmt#433
Open
@bee22193 bee22193 mentioned this pull request May 20, 2024
[Snyk] Upgrade: , bee22193/mnmlurl#1171
Open
@anandgupta193 anandgupta193 mentioned this pull request May 20, 2024
[Snyk] Upgrade: , anandgupta193/sortNsuffle-react#1047
Open
@davidbilling davidbilling mentioned this pull request May 20, 2024
[Snyk] Upgrade @babel/core from 7.24.4 to 7.24.5 davidbilling/ember-cli-time-input#104
Merged
@bee22193 bee22193 mentioned this pull request May 20, 2024
[Snyk] Upgrade: , bee22193/mnmlurl#1172
Open
This was referenced May 20, 2024
[Snyk] Upgrade: , nejidevelops/phase-0-intro-to-js-2-objects-lab#10
Open
[Snyk] Upgrade: , nejidevelops/phase-0-intro-to-js-2-objects-lab#11
Open
[Snyk] Upgrade: , nejidevelops/phase-1-destructuring-assignment#11
Open
@basharat-j basharat-j mentioned this pull request May 20, 2024
[Snyk] Upgrade @babel/runtime from 7.13.10 to 7.24.5 basharat-j/mb-graphql#59
Open
@ashly1111111 ashly1111111 mentioned this pull request May 20, 2024
[Snyk] Upgrade: , , , , ashly1111111/node#104
Open
@scudette scudette mentioned this pull request May 20, 2024
[Snyk] Upgrade: , Velocidex/velociraptor#3501
Closed
@AnushaSalian AnushaSalian mentioned this pull request May 20, 2024
[Snyk] Upgrade: , virtual-labs/ph3-lab-mgmt#434
Open
This was referenced Jun 26, 2024
[Snyk] Upgrade: , nejidevelops/phase-1-destructuring-assignment#45
Open
[Snyk] Upgrade: , nejidevelops/phase-0-javascript-events-acting-on-events-lab#43
Open
@NOUIY NOUIY mentioned this pull request Jun 26, 2024
[Snyk] Upgrade: , , , , NOUIY/node#474
Open
@nejidevelops nejidevelops mentioned this pull request Jun 26, 2024
[Snyk] Upgrade: , nejidevelops/phase-0-intro-to-js-2-looping-code-along#44
Open
@NOUIY NOUIY mentioned this pull request Jun 26, 2024
[Snyk] Upgrade @babel/runtime from 7.17.9 to 7.24.7 NOUIY/videojs-ogvjs#29
Open
This was referenced Jun 26, 2024
[Snyk] Upgrade: , nejidevelops/phase-1-destructuring-assignment#46
Open
[Snyk] Upgrade: , nejidevelops/phase-0-intro-to-js-2-objects-lab#45
Open
[Snyk] Upgrade: , nejidevelops/phase-0-intro-to-js-2-objects-lab#46
Open
@NOUIY NOUIY mentioned this pull request Jun 26, 2024
[Snyk] Upgrade @babel/core from 7.17.9 to 7.24.7 NOUIY/angular#766
Open
@Exkaleburx Exkaleburx mentioned this pull request Jun 26, 2024
[Snyk] Upgrade @babel/core from 7.9.0 to 7.24.7 Exkaleburx/plug-and-klay#8
Open
This was referenced Jun 26, 2024
[Snyk] Upgrade: , nejidevelops/phase-1-domcontentloaded#42
Open
[Snyk] Upgrade: , nejidevelops/phase-1-domcontentloaded#43
Open
@X-oss-byte X-oss-byte mentioned this pull request Jun 26, 2024
[Snyk] Upgrade @babel/core from 7.11.6 to 7.24.7 X-oss-byte/gatsby-1#778
Open
@ashly1111111 ashly1111111 mentioned this pull request Jun 26, 2024
[Snyk] Upgrade: , , , , ashly1111111/node#111
Open
@ITSecOps-404 ITSecOps-404 mentioned this pull request Jun 26, 2024
[Snyk] Upgrade @babel/runtime from 7.23.9 to 7.24.7 ITSecOps-404/threat-dragon#2
Open
This was referenced Jun 26, 2024
[Snyk] Upgrade: , tiff-es/fewpjs-document-onload-dc-web-091619#176
Open
[Snyk] Upgrade: , tiff-es/js-data-structures-objects-lab-dc-web-091619#171
Open
[Snyk] Upgrade: , tiff-es/fewpjs-getter-and-setter-methods-dc-web-091619#185
Open
[Snyk] Upgrade: , tiff-es/fewpjs-class-extensions-super-lab-online-web-sp-000#173
Open
[Snyk] Upgrade @babel/preset-env from 7.10.4 to 7.24.7 tiff-es/tiffany-portfolio-responsive#410
Open
[Snyk] Upgrade: , tiff-es/fewpjs-acting-on-events-dc-web-091619#176
Open
[Snyk] Upgrade: , tiff-es/js-looping-and-iteration-looping-code-along-dc-web-091619#183
Open
[Snyk] Upgrade: , tiff-es/fewpjs-fns-as-first-class-data-array-o-functions-dc-web-091619#178
Open
[Snyk] Upgrade: , tiff-es/fewpjs-fns-as-first-class-data-do-behavior-dc-web-091619#176
Open
[Snyk] Upgrade: , tiff-es/fewpjs-adding-behavior-with-methods-dc-web-091619#186
Open
@Mhmonicox Mhmonicox mentioned this pull request Jun 27, 2024
[Snyk] Upgrade: , , , , Mhmonicox/node#131
Open
@bee22193 bee22193 mentioned this pull request Jun 27, 2024
[Snyk] Upgrade: , bee22193/mnmlurl#1201
Open
@trabab trabab mentioned this pull request Jun 27, 2024
[Snyk] Upgrade @babel/core from 7.9.0 to 7.24.7 trabab/uppy#801
Open
@github-actions github-actions Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jun 27, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@JLHwung JLHwung JLHwung approved these changes
@nicolo-ribaudo nicolo-ribaudo nicolo-ribaudo approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Bug Fix 🐛 A type of pull request used for our changelog categories Spec: Decorators

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Decorators | Error when calling super in constructor of extended class when decorating accessors.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@liuxingbaoyu @babel-bot @JLHwung @nicolo-ribaudo
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.