Skip to content

Fix derived classes in Chrome <= 36#14072

Merged
nicolo-ribaudo merged 2 commits intobabel:mainfrom
nicolo-ribaudo:classes-chrome-36
Dec 30, 2021
Merged

Fix derived classes in Chrome <= 36#14072
nicolo-ribaudo merged 2 commits intobabel:mainfrom
nicolo-ribaudo:classes-chrome-36

Conversation

@nicolo-ribaudo
Copy link
Copy Markdown
Member

@nicolo-ribaudo nicolo-ribaudo commented Dec 21, 2021

Q                       A
Fixed Issues? Fixes #14056
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Unfortunately we don't have the infrastructure to run tests in real old browsers, so you can either trust me and @romainmenke that it works or you can download Chrome <= 36 and try it yourself! 😅

@nicolo-ribaudo nicolo-ribaudo added PR: Bug Fix 🐛 A type of pull request used for our changelog categories i: regression Spec: Classes labels Dec 21, 2021
@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Dec 21, 2021

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

@romainmenke
Copy link
Copy Markdown

romainmenke commented Dec 21, 2021

Fix works in chrome 14-36 (I can't test older versions)

https://mrhenry.github.io/web-tests/#293ee801-4d53-4261-add3-dca6b9f8015f

  • 0.1 values indicates it is passing but used to fail, takes a few runs for values to settle back on 1.0
  • values that are still 0.0 are just rounded values (0.04 => 0.0)

No test cases dropped in score.

Screenshot 2021-12-21 at 19 27 49

not going to do further runs at this time as it's a bit wasteful.


edit : just read #14056 (comment)

unsure if we need to wait with rolling this out until we receive more info on that?


Update :

I had to remove the patch from our test suite so posting latest results here :

Screenshot 2021-12-29 at 14 51 54

Copy link
Copy Markdown
Contributor

@JLHwung JLHwung left a comment

Choose a reason for hiding this comment

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

Nit: can you also add link to the upstream issue?

https://bugs.chromium.org/p/v8/issues/detail?id=3334

Comment thread packages/babel-helpers/src/helpers.ts
@nicolo-ribaudo nicolo-ribaudo merged commit 2810dc6 into babel:main Dec 30, 2021
@nicolo-ribaudo nicolo-ribaudo deleted the classes-chrome-36 branch December 30, 2021 22:58
@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 Apr 5, 2022
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

i: regression 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: Classes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: subclassing seems broken in older Chrome

5 participants