Index: tools/dom/src/native_DOMImplementation.dart |
diff --git a/tools/dom/src/native_DOMImplementation.dart b/tools/dom/src/native_DOMImplementation.dart |
index a5d923b4377dda9a1cc6417ea3369c398e87c9ca..cab500e7d117fe472bfb7573644df3922b00a7e6 100644 |
--- a/tools/dom/src/native_DOMImplementation.dart |
+++ b/tools/dom/src/native_DOMImplementation.dart |
@@ -79,6 +79,15 @@ class _Utils { |
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]; |