| Index: lib/compiler/implementation/lib/js_helper.dart
|
| diff --git a/lib/compiler/implementation/lib/js_helper.dart b/lib/compiler/implementation/lib/js_helper.dart
|
| index 99a5ac7ca85946a11a3ee89dfdbb79c5771fbfc0..4f45b395ec5451d57e4aebb0d1dc37cba7e34c12 100644
|
| --- a/lib/compiler/implementation/lib/js_helper.dart
|
| +++ b/lib/compiler/implementation/lib/js_helper.dart
|
| @@ -757,6 +757,7 @@ class MathNatives {
|
| * an exception.
|
| */
|
| captureStackTrace(ex) {
|
| + if (ex === null) ex = const NullPointerException();
|
| var jsError = JS('Object', @'new Error()');
|
| JS('void', @'#.dartException = #', jsError, ex);
|
| JS('void', @'''#.toString = #''', jsError,
|
|
|