Index: sdk/lib/_internal/lib/js_helper.dart |
diff --git a/sdk/lib/_internal/lib/js_helper.dart b/sdk/lib/_internal/lib/js_helper.dart |
index 98f9798a2cc211129e8d32e427dd9d627e2d449a..6a6ff8e87ecc60e9fff2a3440edcaa07ee500bac 100644 |
--- a/sdk/lib/_internal/lib/js_helper.dart |
+++ b/sdk/lib/_internal/lib/js_helper.dart |
@@ -1939,6 +1939,11 @@ voidTypeCheck(value) { |
throw new TypeErrorImplementation(value, 'void'); |
} |
+checkMalformedType(value, message) { |
+ if (value == null) return value; |
+ throw new TypeErrorImplementation.fromMessage(message); |
+} |
+ |
/** |
* Special interface recognized by the compiler and implemented by DOM |
* objects that support integer indexing. This interface is not |