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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/js_helper.dart

Issue 2965633002: Fix handling of inline JS types in DDC. (Closed)
Patch Set: Created 3 years, 6 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: 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);

Powered by Google App Engine
This is Rietveld 408576698