Skip to content

Commit

Permalink
Stop depending on stack_trace (#115)
Browse files Browse the repository at this point in the history
At this point, we're only using this for Chain.current which might as
well just be StackTrace.current.
  • Loading branch information
nex3 authored Sep 28, 2017
1 parent 5f21a3b commit 77d470a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/browser_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import 'dart:html';
import 'dart:typed_data';

import 'package:async/async.dart';
import 'package:stack_trace/stack_trace.dart';

import 'src/base_client.dart';
import 'src/exception.dart';
Expand Down Expand Up @@ -64,7 +63,7 @@ class BrowserClient extends BaseClient {
reader.onError.first.then((error) {
completer.completeError(
new ClientException(error.toString(), request.url),
new Chain.current());
StackTrace.current);
});

reader.readAsArrayBuffer(blob);
Expand All @@ -75,7 +74,7 @@ class BrowserClient extends BaseClient {
// specific information about the error itself.
completer.completeError(
new ClientException("XMLHttpRequest error.", request.url),
new Chain.current());
StackTrace.current);
});

xhr.send(bytes);
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ dependencies:
collection: "^1.5.0"
http_parser: ">=0.0.1 <4.0.0"
path: ">=0.9.0 <2.0.0"
stack_trace: ">=0.9.1 <2.0.0"
dev_dependencies:
test: "^0.12.18"
# Override dependency on package_resolver to enable test
Expand Down

0 comments on commit 77d470a

Please sign in to comment.