fix a bug in StackTrace.parent (#60)
diff --git a/changelog.md b/changelog.md
index ad1a60e..5be7bb5 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,8 @@
# webkit_inspection_protocol.dart
+## 0.7.2
+- Fix a bug in `StackTrace.parent`
+
## 0.7.1
- Exposed `Debugger.setAsyncCallStackDepth`
- Exposed `StackTrace.parent`
diff --git a/lib/src/runtime.dart b/lib/src/runtime.dart
index 4cffc96..da09256 100644
--- a/lib/src/runtime.dart
+++ b/lib/src/runtime.dart
@@ -279,7 +279,7 @@
/// available.
@optional
StackTrace get parent {
- return json['callFrames'] == null ? null : StackTrace(json['callFrames']);
+ return json['parent'] == null ? null : StackTrace(json['parent']);
}
List<String> printFrames() {
diff --git a/pubspec.yaml b/pubspec.yaml
index 1ad5894..a781cb6 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: webkit_inspection_protocol
-version: 0.7.1
+version: 0.7.2
description: A client for the Chrome DevTools Protocol (previously called the Webkit Inspection Protocol).
homepage: https://github.com/google/webkit_inspection_protocol.dart