Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Use pausePoints to determine valid pause locations#5954

Merged
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
jasonLaster:pause-state
Apr 17, 2018
Merged

Use pausePoints to determine valid pause locations#5954
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
jasonLaster:pause-state

Conversation

@jasonLaster
Copy link
Copy Markdown
Contributor

@jasonLaster jasonLaster commented Apr 12, 2018

Fixes Issue: #5951

Summary of Changes

  • previously isInValidLocation would not respond in some cases
  • now we use pause points which is pre-computed
  • pause points has some new empty points to account for places we don't want to pause

@darkwing
Copy link
Copy Markdown
Contributor

Code looks solid; do we have any manual testing steps that can be done reliably?

Copy link
Copy Markdown
Contributor

@darkwing darkwing left a comment

Choose a reason for hiding this comment

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

Approved under the condition you (1) remove find and (2) back out the package.json/yarn.lock updates as they're already in.

import type { SimplePath } from "./utils/simple-path";

const isForStatement = node =>
t.isForStatement(node) || t.isForOfStatement(node);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh nice!

@jasonLaster
Copy link
Copy Markdown
Contributor Author

manually uses babel-stepping

http://localhost:8000/integration/examples/doc-babel.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants