Index: pkg/dev_compiler/tool/input_sdk/private/js_helper.dart |
diff --git a/pkg/dev_compiler/tool/input_sdk/private/js_helper.dart b/pkg/dev_compiler/tool/input_sdk/private/js_helper.dart |
index 131aa180c1221305487c7ebf752e81fedf8ae9c7..0017ebc9b16877df510e6ab71c831789f1b79945 100644 |
--- a/pkg/dev_compiler/tool/input_sdk/private/js_helper.dart |
+++ b/pkg/dev_compiler/tool/input_sdk/private/js_helper.dart |
@@ -624,7 +624,7 @@ class UnknownJsTypeError extends Error { |
final _stackTrace = JS('', 'Symbol("_stackTrace")'); |
StackTrace getTraceFromException(exception) { |
var error = JS('', 'dart.recordJsError(#)', exception); |
- var trace = JS('StackTrace', '#[#]', error, _stackTrace); |
+ var trace = JS('StackTrace|Null', '#[#]', error, _stackTrace); |
if (trace != null) return trace; |
trace = new _StackTrace(error); |
JS('', '#[#] = #', error, _stackTrace, trace); |