Skip to content

Commit

Permalink
Don't treat Dartium as a JS context. (flutter#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Sep 29, 2016
1 parent 9da0910 commit 5123d71
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const chainGap = '===== asynchronous gap ===========================\n';

// 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.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: stack_trace
#
# 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: >
Expand Down

0 comments on commit 5123d71

Please sign in to comment.