Skip to content

Make pauseIsolatesOnStart an optional parameter to hot-restart - #2397

Merged
elliette merged 1 commit into
dart-lang:masterfrom
elliette:ready-to-run-main
Mar 26, 2024
Merged

elliette merged 1 commit into
dart-lang:masterfrom
elliette:ready-to-run-main

Conversation

@elliette

Copy link
Copy Markdown
Contributor

Follow up to #2378

The pauseIsolatesOnStart parameter should be optional, so that we don't need to update all the call sites at once.

Work towards flutter/devtools#7231

@nshahan nshahan left a comment

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.

LGTM with one question.

Comment thread dwds/web/client.dart
hotRestartJs = allowInterop((String runId, bool pauseIsolatesOnStart) {
if (pauseIsolatesOnStart) {
hotRestartJs = allowInterop((String runId, [bool? pauseIsolatesOnStart]) {
if (pauseIsolatesOnStart ?? false) {

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.

Is this preferable to giving it a default value?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We also define @JS(r'$dartHotRestartDwds') somewhere else (in google3) and this way we don't need to update the parameters there too. I'm not sure if we would if this had a default value.

@elliette
elliette merged commit ee8c967 into dart-lang:master Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants