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

Unified Diff: tools/dom/src/native_DOMImplementation.dart

Issue 51793002: Add an API function to get a debugger stack trace from an error handle. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
« runtime/vm/object.h ('K') | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/native_DOMImplementation.dart
diff --git a/tools/dom/src/native_DOMImplementation.dart b/tools/dom/src/native_DOMImplementation.dart
index 43d542f8fe68b569add11d691992f67016feca1e..f0706fe14d835722e8b21a3901e7d93c27a898e7 100644
--- a/tools/dom/src/native_DOMImplementation.dart
+++ b/tools/dom/src/native_DOMImplementation.dart
@@ -70,24 +70,6 @@ class _Utils {
return result;
}
- static List parseStackTrace(StackTrace stackTrace) {
- final regExp = new RegExp(r'#\d\s+(.*) \((.*):(\d+):(\d+)\)');
- List result = [];
- for (var match in regExp.allMatches(stackTrace.toString())) {
- result.add([match.group(1), match.group(2), int.parse(match.group(3)), int.parse(match.group(4))]);
- }
- return result;
- }
-
- static List captureParsedStackTrace() {
- try {
- // Throwing an exception is the only way to generate a stack trace.
- throw new Exception();
- } catch (e, stackTrace) {
- return parseStackTrace(stackTrace);
- }
- }
-
static void populateMap(Map result, List list) {
for (int i = 0; i < list.length; i += 2) {
result[list[i]] = list[i + 1];
« runtime/vm/object.h ('K') | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698