Skip to content

fix(49149): remove unneeded array overload to Object.freeze #50029

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

Merged
merged 4 commits into from
Aug 15, 2022

Conversation

nicolas377
Copy link
Contributor

@nicolas377 nicolas377 commented Jul 25, 2022

Fixes #49149

@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Jul 25, 2022
@andrewbranch
Copy link
Member

You just need to commit the baseline changes, assuming they look ok. If you’re not sure if they look ok, commit them anyway so we can take a look.

@nicolas377
Copy link
Contributor Author

Thanks for that pointer! I'll take a look at those baselines and commit them (i might throw some questions in there if i have any i cant figure out).

@andrewbranch
Copy link
Member

Chances are most/all of them are just position changes of symbols defined after Object.freeze in lib.es5.d.ts since they will have moved up a few lines.

@ghost
Copy link

ghost commented Jul 25, 2022

CLA assistant check
All CLA requirements met.

@andrewbranch
Copy link
Member

@typescript-bot test this
@typescript-bot user test this inline
@typescript-bot run dt

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jul 25, 2022

Heya @andrewbranch, I've started to run the extended test suite on this PR at 646193b. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jul 25, 2022

Heya @andrewbranch, I've started to run the diff-based user code test suite on this PR at 646193b. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jul 25, 2022

Heya @andrewbranch, I've started to run the parallelized Definitely Typed test suite on this PR at 646193b. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

Heya @andrewbranch, I've run the RWC suite on this PR - assuming you're on the TS core team, you can view the resulting diff here.

@typescript-bot
Copy link
Collaborator

@andrewbranch
Great news! no new errors were found between main..refs/pull/50029/merge

@nicolas377 nicolas377 marked this pull request as ready for review July 26, 2022 18:47
@typescript-bot
Copy link
Collaborator

The TypeScript team hasn't accepted the linked issue #49149. If you can get it accepted, this PR will have a better chance of being reviewed.

@andrewbranch
Copy link
Member

@DanielRosenwasser I’m fairly convinced this is right, but maybe we should plan to merge this for 4.9?

@DanielRosenwasser
Copy link
Member

Early 4.9 seems appropriate.

@DanielRosenwasser DanielRosenwasser added the Merge/Review for Next Release This PR should be re-reviewed and merged ASAP for the next release. label Jul 28, 2022
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 4.9.0 milestone Jul 29, 2022
@sandersn sandersn requested review from andrewbranch and removed request for sandersn July 29, 2022 21:52
@andrewbranch
Copy link
Member

Thanks @nicolas377!

@andrewbranch andrewbranch merged commit 8a873de into microsoft:main Aug 15, 2022
@aghArdeshir
Copy link
Contributor

Very nice 👍
I learned a lot through this PR. Thanks guys 👍 \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug Merge/Review for Next Release This PR should be re-reviewed and merged ASAP for the next release.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Object.freeze overloads force the type to be recognized as an array (by the order of overloads)
7 participants