Don't treat Dartium as a JS context. (dart-lang/stack_trace#12)
diff --git a/pkgs/stack_trace/CHANGELOG.md b/pkgs/stack_trace/CHANGELOG.md index 21fd734..70b5147 100644 --- a/pkgs/stack_trace/CHANGELOG.md +++ b/pkgs/stack_trace/CHANGELOG.md
@@ -1,3 +1,8 @@ +## 1.6.7 + +* Fix a bug where `new Frame.caller()` returned the wrong depth of frame on + Dartium. + ## 1.6.6 * `new Trace.current()` and `new Chain.current()` now skip an extra frame when
diff --git a/pkgs/stack_trace/lib/src/utils.dart b/pkgs/stack_trace/lib/src/utils.dart index b06d462..6d23728 100644 --- a/pkgs/stack_trace/lib/src/utils.dart +++ b/pkgs/stack_trace/lib/src/utils.dart
@@ -10,7 +10,7 @@ // TODO(nweiz): When cross-platform imports work, use them to set this. /// Whether we're running in a JS context. -final bool inJS = p.style == p.Style.url; +final bool inJS = 0.0 is int; /// Returns [string] with enough spaces added to the end to make it [length] /// characters long.
diff --git a/pkgs/stack_trace/pubspec.yaml b/pkgs/stack_trace/pubspec.yaml index 06c9d3c..e23c6d6 100644 --- a/pkgs/stack_trace/pubspec.yaml +++ b/pkgs/stack_trace/pubspec.yaml
@@ -7,7 +7,7 @@ # # When the major version is upgraded, you *must* update that version constraint # in pub to stay in sync with this. -version: 1.6.6 +version: 1.6.7 author: "Dart Team <misc@dartlang.org>" homepage: https://github.com/dart-lang/stack_trace description: >