Skip to content
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

fix: assorted bad source behaviors when reloading a page #1585

Merged
merged 3 commits into from
Mar 3, 2023

Conversation

connor4312
Copy link
Member

@connor4312 connor4312 commented Mar 3, 2023

Fixes #1582

We weren't dealing with removed execution contexts at all (e.g. removing an iframe or worker), only cleared ones (e.g. refreshing the entire page). Now, removing an execution context properly removes its sources, and scripts from multiple contexts are handled.

I think this is also an underlying fix for several other bugs I have open; will investigate tomorrow.

Seems like esbuild doesn't deal with const enums in dependency .d.ts like ts does
@connor4312 connor4312 marked this pull request as ready for review March 3, 2023 00:40
@connor4312 connor4312 enabled auto-merge March 3, 2023 00:40
@connor4312 connor4312 disabled auto-merge March 3, 2023 00:40
@@ -610,7 +609,7 @@ export class BreakpointManager {
await Promise.all(
result.unbound.map(b => {
this._byDapId.delete(b.dapId);
b.disable();
return b.disable();
Copy link
Member Author

@connor4312 connor4312 Mar 3, 2023

Choose a reason for hiding this comment

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

this fixes a test flake that's failed like 1 in 200 runs for the past two years

@connor4312 connor4312 enabled auto-merge March 3, 2023 17:01
@connor4312 connor4312 merged commit 4300559 into main Mar 3, 2023
@connor4312 connor4312 deleted the connor4312/issue1582 branch March 3, 2023 17:30
@hediet
Copy link
Member

hediet commented Mar 4, 2023

Noice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Breakpoints are not bound for code in iframe when the iframe is reloaded.
3 participants