Skip to content

Fix double error on invalid delete of readonly property #53961

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

Closed
wants to merge 3 commits into from

Conversation

galabra
Copy link

@galabra galabra commented Apr 22, 2023

Fixes #53082

Whenever we detect there's an error of type The_operand_of_a_delete_operator_cannot_be_a_read_only_property, we don't need to check for the The_operand_of_a_delete_operator_must_be_optional error.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Apr 22, 2023
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@typescript-bot typescript-bot added For Backlog Bug PRs that fix a backlog bug and removed For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Apr 24, 2023
@jakebailey
Copy link
Member

This seems reasonable, but, it still needs some sort of test. Potentially one like those in inconsistentErrorInEditor.ts?

@jakebailey
Copy link
Member

@typescript-bot test this
@typescript-bot test top100
@typescript-bot user test this
@typescript-bot user test tsserver
@typescript-bot test tsserver top100
@typescript-bot run dt
@typescript-bot perf test this
@typescript-bot pack this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 24, 2023

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

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 24, 2023

Heya @jakebailey, I've started to run the diff-based user code test suite (tsserver) on this PR at f0690e4. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 24, 2023

Heya @jakebailey, I've started to run the diff-based top-repos suite on this PR at f0690e4. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 24, 2023

Heya @jakebailey, I've started to run the perf test suite on this PR at f0690e4. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 24, 2023

Heya @jakebailey, I've started to run the tarball bundle task on this PR at f0690e4. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 24, 2023

Heya @jakebailey, I've started to run the diff-based top-repos suite (tsserver) on this PR at f0690e4. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 24, 2023

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

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 24, 2023

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

Update: The results are in!

@typescript-bot
Copy link
Collaborator

Hey @jakebailey, I've packed this into an installable tgz. You can install it for testing by referencing it in your package.json like so:

{
    "devDependencies": {
        "typescript": "https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/153170/artifacts?artifactName=tgz&fileId=DA04E94F1A41122AE1E27FE39B311765ED63147BA709B665F88461AF21FC671602&fileName=/typescript-5.1.0-insiders.20230424.tgz"
    }
}

and then running npm install.

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the user test suite comparing main and refs/pull/53961/merge:

There were infrastructure failures potentially unrelated to your change:

  • 1 instance of "Package install failed"

Otherwise...

Everything looks good!

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the user test suite comparing main and refs/pull/53961/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

Hey @jakebailey, it looks like the DT test run failed. Please check the log for more details.
You can check the log here.

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the top-repos suite comparing main and refs/pull/53961/merge:

Everything looks good!

@jakebailey
Copy link
Member

@typescript-bot pack this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 24, 2023

Heya @jakebailey, I've started to run the tarball bundle task on this PR at f0690e4. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 24, 2023

Hey @jakebailey, I've packed this into an installable tgz. You can install it for testing by referencing it in your package.json like so:

{
    "devDependencies": {
        "typescript": "https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/153177/artifacts?artifactName=tgz&fileId=DA04E94F1A41122AE1E27FE39B311765ED63147BA709B665F88461AF21FC671602&fileName=/typescript-5.1.0-insiders.20230424.tgz"
    }
}

and then running npm install.


There is also a playground for this build and an npm module you can use via "typescript": "npm:@typescript-deploys/[email protected]".;

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the top-repos suite comparing main and refs/pull/53961/merge:

Everything looks good!

Copy link
Member

@sheetalkamat sheetalkamat left a comment

Choose a reason for hiding this comment

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

Pls add test

@jakebailey
Copy link
Member

jakebailey commented Sep 15, 2023

#53082 was fixed by #55449, so this PR is no longer needed.

@jakebailey jakebailey closed this Sep 15, 2023
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
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Double error on invalid delete of readonly property
4 participants