| 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();
|
|
|