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

Update to latest lints and fix problems #2578

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Update to latest lints and fix problems #2578

wants to merge 3 commits into from

Conversation

kevmoo
Copy link
Member

@kevmoo kevmoo commented Jan 22, 2025

No description provided.

!e.metaKey) {
e.preventDefault();
launchDevToolsJs.callAsFunction();
if (e.isA<KeyboardEvent>()) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Is almost certainly was NOT working before. Or maybe just not in Wasm?

CC @srujzs

Copy link
Member Author

Choose a reason for hiding this comment

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

@srujzs have we talk about an asA<T> functions that returns T?? (or similar)

Copy link
Contributor

Choose a reason for hiding this comment

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

e is KeyboardEvent is always returning true regardless of platform because Event and KeyboardEvent have the same representation type, so this was broken. Nice catch!

re: asA, yes. dart-lang/sdk#56957 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

Latest lints catch these for us!

@srujzs
Copy link
Contributor

srujzs commented Jan 23, 2025

Since you modified client.dart, you'll need to regenerate client.js by running dart run build_runner build web in dwds.

@elliette elliette removed their request for review January 23, 2025 01:39
@elliette
Copy link
Contributor

Removing myself since I no longer work on dwds :)

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.

3 participants