Index: sdk/lib/_internal/compiler/implementation/lib/js_helper.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/lib/js_helper.dart (revision 14515) |
+++ sdk/lib/_internal/compiler/implementation/lib/js_helper.dart (working copy) |
@@ -1387,6 +1387,11 @@ |
propertyTypeCastError(value, property); |
} |
+voidTypeCheck(value) { |
+ if (value == null) return value; |
+ throw new TypeErrorImplementation(value, 'void'); |
+} |
+ |
/** |
* Special interface recognized by the compiler and implemented by DOM |
* objects that support integer indexing. This interface is not |