| Index: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (revision 14515)
|
| +++ sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (working copy)
|
| @@ -907,7 +907,9 @@
|
| Element element = type.element;
|
| bool nativeCheck =
|
| emitter.nativeEmitter.requiresNativeIsCheck(element);
|
| - if (element == compiler.stringClass) {
|
| + if (type == compiler.types.voidType) {
|
| + return const SourceString('voidTypeCheck');
|
| + } else if (element == compiler.stringClass) {
|
| return const SourceString('stringTypeCheck');
|
| } else if (element == compiler.doubleClass) {
|
| return const SourceString('doubleTypeCheck');
|
|
|