| Index: frog/corejs.dart
|
| diff --git a/frog/corejs.dart b/frog/corejs.dart
|
| index 587f9215ada53fc572e0625822622ae78176038e..690201b258cc8e6658458e538c8fcd50cee7e908 100644
|
| --- a/frog/corejs.dart
|
| +++ b/frog/corejs.dart
|
| @@ -287,10 +287,11 @@ function $toDartException(e) {
|
|
|
| if (useNotNullBool) {
|
| useThrow = true;
|
| - // Some testing showed that this patterned fared well across browsers.
|
| + // This pattern chosen because IE9 does really badly with typeof, and
|
| + // it's still decent on other browsers.
|
| w.writeln(@"""
|
| function $notnull_bool(test) {
|
| - return typeof(test) == 'boolean' ? test : test.is$bool();
|
| + return (test === true || test === false) ? test : test.is$bool();
|
| }""");
|
| }
|
|
|
|
|