| Index: lib/compiler/implementation/lib/js_helper.dart
|
| ===================================================================
|
| --- lib/compiler/implementation/lib/js_helper.dart (revision 8096)
|
| +++ lib/compiler/implementation/lib/js_helper.dart (working copy)
|
| @@ -829,7 +829,9 @@
|
| }
|
|
|
| // Check for the Firefox specific stack overflow signal.
|
| - if (JS('bool', @'InternalError && # instanceof InternalError', ex)) {
|
| + if (JS('bool',
|
| + @"typeof InternalError == 'object' && # instanceof InternalError",
|
| + ex)) {
|
| if (message is String && message == 'too much recursion') {
|
| return new StackOverflowException();
|
| }
|
|
|