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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/js_helper.dart

Issue 14009004: Remove methods on StackTrace class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add dart2j issue number for unexepected stack trace. Created 7 years, 8 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
Index: sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart b/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
index 1470bade848889ec4488f75881e67a8b997fbd95..7cca7587c16e4bd7056bbf48899b838f72497e23 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
@@ -824,13 +824,13 @@ unwrapException(ex) {
* exception.
*/
StackTrace getTraceFromException(exception) {
- return new StackTrace(JS("var", r"#.stack", exception));
+ return new _StackTrace(JS("var", r"#.stack", exception));
}
-class StackTrace {
- var stack;
- StackTrace(this.stack);
- String toString() => stack != null ? stack : '';
+class _StackTrace implements StackTrace {
+ var _stack;
+ _StackTrace(this._stack);
+ String toString() => _stack != null ? _stack : '';
}

Powered by Google App Engine
This is Rietveld 408576698