From 07bfd5b04d64b1630c2558c9942d6156e17dfbde Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Thu, 21 Sep 2017 14:32:52 -0700 Subject: [PATCH] Stop depending on stack_trace At this point, we're only using this for Chain.current which might as well just be StackTrace.current. --- lib/browser_client.dart | 5 ++--- pubspec.yaml | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/browser_client.dart b/lib/browser_client.dart index ff3c80ce6a..2b1cb3b863 100644 --- a/lib/browser_client.dart +++ b/lib/browser_client.dart @@ -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'; @@ -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); @@ -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); diff --git a/pubspec.yaml b/pubspec.yaml index 956379a5bc..958b2babf8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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