-
Notifications
You must be signed in to change notification settings - Fork 82
Refactor Dart Debug Extension to add shared files for Chrome API and Web API wrappers #1729
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
Conversation
@@ -5,6 +5,7 @@ | |||
import 'package:js/js.dart'; | |||
|
|||
@JS() | |||
// ignore: non_constant_identifier_names |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this newly necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've re-factored the JS wrappers to match the native JS APIs (in this case, JSON.stringify). Because the JS class name is all-caps, we need to add the ignore comment.
(Before we weren't matching the JS APIs, so this was simply called stringify
).
@@ -298,13 +303,14 @@ void _maybeMarkTabAsDebuggable( | |||
void _maybeAttachDebugSession( | |||
Debuggee source, | |||
String method, | |||
Object params, | |||
dynamic params, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I think I changed to dynamic
so it would be nullable. Switched to Object?
instead
background.dart
and intochrome_api.dart
andweb_api.dart
(this way they can be used by both the service worker and IFRAME script for MV3 migration)chrome.debugger.onEvent.addListener
)