Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: packages/stack_trace/test/vm_test.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/stack_trace/test/utils.dart ('k') | packages/string_scanner/.analysis_options » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/stack_trace/test/vm_test.dart
diff --git a/packages/stack_trace/test/vm_test.dart b/packages/stack_trace/test/vm_test.dart
index 947f14bd7b53456114cadbdd6690b38885a3d8c5..1b5345837fc0f33b2ebefbffce377e97a05d5e54 100644
--- a/packages/stack_trace/test/vm_test.dart
+++ b/packages/stack_trace/test/vm_test.dart
@@ -12,21 +12,11 @@ import 'package:path/path.dart' as path;
import 'package:stack_trace/stack_trace.dart';
import 'package:test/test.dart';
-String getStackTraceString() {
- try {
- throw '';
- } catch (_, stackTrace) {
- return stackTrace.toString();
- }
-}
+// The name of this (trivial) function is verified as part of the test
+String getStackTraceString() => StackTrace.current.toString();
-StackTrace getStackTraceObject() {
- try {
- throw '';
- } catch (_, stackTrace) {
- return stackTrace;
- }
-}
+// The name of this (trivial) function is verified as part of the test
+StackTrace getStackTraceObject() => StackTrace.current;
Frame getCaller([int level]) {
if (level == null) return new Frame.caller();
« no previous file with comments | « packages/stack_trace/test/utils.dart ('k') | packages/string_scanner/.analysis_options » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698