Files
sdk/runtime/lib/stacktrace_patch.dart
T
asiva@google.com 3c90369ba6 Add functionality to get full stack trace when exceptions are thrown.
This should address the issue raised in 7813.

try {
 ...
 ...
} on Object catch(e, s) {
 print(s.fullStackTrace);  // This should print the full stack trace.
}
Review URL: https://codereview.chromium.org//12316116

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19179 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 22:47:06 +00:00

14 lines
486 B
Dart

// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
patch class StackTrace {
/* patch */ String get fullStackTrace native "Stacktrace_getFullStacktrace";
/* patch */ String get stackTrace native "Stacktrace_getStacktrace";
/* patch */ void _setupFullStackTrace()
native "Stacktrace_setupFullStacktrace";
}