Index: pkg/dev_compiler/lib/js/es6/dart_sdk.js |
diff --git a/pkg/dev_compiler/lib/js/es6/dart_sdk.js b/pkg/dev_compiler/lib/js/es6/dart_sdk.js |
index 70a515d7bbbac9a3bed5b9715449ed7527040d25..989141eb6557c8995859b188900d196fa30e5bfa 100644 |
--- a/pkg/dev_compiler/lib/js/es6/dart_sdk.js |
+++ b/pkg/dev_compiler/lib/js/es6/dart_sdk.js |
@@ -4069,6 +4069,13 @@ dart.setSignature(_debugger.TypeFormatter, { |
children: dart.definiteFunctionType(core.List$(_debugger.NameValuePair), [dart.dynamic]) |
}) |
}); |
+_debugger.StackTraceMapper = dart.typedef('StackTraceMapper', () => dart.functionType(core.String, [core.String])); |
+dart.copyProperties(_debugger, { |
+ get stackTraceMapper() { |
+ let _util = dart.global.$dartStackTraceUtility; |
+ return _debugger.StackTraceMapper._check(_util != null ? _util.mapper : null); |
+ } |
+}); |
_debugger.registerDevtoolsFormatter = function() { |
let formatters = JSArrayOfJsonMLFormatter().of([_debugger._devtoolsFormatter]); |
dart.global.devtoolsFormatters = formatters; |
@@ -11938,6 +11945,9 @@ _js_helper._StackTrace = class _StackTrace extends core.Object { |
let trace = null; |
if (this[_exception] !== null && typeof this[_exception] === "object") { |
trace = this[_exception].stack; |
+ if (trace != null && _debugger.stackTraceMapper != null) { |
+ trace = _debugger.stackTraceMapper(trace); |
+ } |
} |
return this[_trace] = trace == null ? '' : trace; |
} |