TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

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

Open nicolas377 opened this issue 3 years ago • 13 comments

Fixes #49149

nicolas377 avatar Jul 25 '22 00:07 nicolas377

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.

andrewbranch avatar Jul 25 '22 17:07 andrewbranch

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).

nicolas377 avatar Jul 25 '22 17:07 nicolas377

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.

andrewbranch avatar Jul 25 '22 17:07 andrewbranch

CLA assistant check
All CLA requirements met.

ghost avatar Jul 25 '22 17:07 ghost

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

andrewbranch avatar Jul 25 '22 18:07 andrewbranch

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

typescript-bot avatar Jul 25 '22 18:07 typescript-bot

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

Update: The results are in!

typescript-bot avatar Jul 25 '22 18:07 typescript-bot

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

typescript-bot avatar Jul 25 '22 18:07 typescript-bot

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 avatar Jul 25 '22 19:07 typescript-bot

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

typescript-bot avatar Jul 25 '22 19:07 typescript-bot

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.

typescript-bot avatar Jul 26 '22 18:07 typescript-bot

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

andrewbranch avatar Jul 28 '22 18:07 andrewbranch

Early 4.9 seems appropriate.

DanielRosenwasser avatar Jul 28 '22 18:07 DanielRosenwasser

Thanks @nicolas377!

andrewbranch avatar Aug 15 '22 23:08 andrewbranch

Very nice :+1: I learned a lot through this PR. Thanks guys :+1: \

aghArdeshir avatar Aug 16 '22 07:08 aghArdeshir