Skip to content

Commit 5123d71

Browse files
authored
Don't treat Dartium as a JS context. (flutter#12)
1 parent 9da0910 commit 5123d71

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.6.7
2+
3+
* Fix a bug where `new Frame.caller()` returned the wrong depth of frame on
4+
Dartium.
5+
16
## 1.6.6
27

38
* `new Trace.current()` and `new Chain.current()` now skip an extra frame when

lib/src/utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const chainGap = '===== asynchronous gap ===========================\n';
1010

1111
// TODO(nweiz): When cross-platform imports work, use them to set this.
1212
/// Whether we're running in a JS context.
13-
final bool inJS = p.style == p.Style.url;
13+
final bool inJS = 0.0 is int;
1414

1515
/// Returns [string] with enough spaces added to the end to make it [length]
1616
/// characters long.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: stack_trace
77
#
88
# When the major version is upgraded, you *must* update that version constraint
99
# in pub to stay in sync with this.
10-
version: 1.6.6
10+
version: 1.6.7
1111
author: "Dart Team <[email protected]>"
1212
homepage: https://github.com/dart-lang/stack_trace
1313
description: >

0 commit comments

Comments
 (0)