Skip to content

Commit

Permalink
Fix type issue with GlobalObjectClearedEvents (#61)
Browse files Browse the repository at this point in the history
Fix type issue with GlobalObjectClearedEvents
  • Loading branch information
grouma authored May 26, 2020
1 parent bcb2430 commit 6b15729
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ linter:
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- prefer_final_fields
- type_annotate_public_apis
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# webkit_inspection_protocol.dart

## 0.7.3
- Fix a type issue with `GlobalObjectClearedEvent`s

## 0.7.2
- Fix a bug in `StackTrace.parent`

Expand Down
4 changes: 2 additions & 2 deletions lib/src/debugger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class WipDebugger extends WipDomain {

Stream<GlobalObjectClearedEvent> get onGlobalObjectCleared => eventStream(
'Debugger.globalObjectCleared',
(WipEvent event) => new GlobalObjectClearedEvent(event));
(WipEvent event) => new GlobalObjectClearedEvent(event.json));

Stream<DebuggerResumedEvent> get onResumed => eventStream('Debugger.resumed',
(WipEvent event) => new DebuggerResumedEvent(event.json));
Expand Down Expand Up @@ -194,7 +194,7 @@ class ScriptParsedEvent extends WipEvent {
}

class GlobalObjectClearedEvent extends WipEvent {
GlobalObjectClearedEvent(json) : super(json);
GlobalObjectClearedEvent(Map<String, dynamic> json) : super(json);
}

class DebuggerResumedEvent extends WipEvent {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: webkit_inspection_protocol
version: 0.7.2
version: 0.7.3
description: A client for the Chrome DevTools Protocol (previously called the Webkit Inspection Protocol).
homepage: https://github.com/google/webkit_inspection_protocol.dart

Expand Down

0 comments on commit 6b15729

Please sign in to comment.