Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1779)

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/js_helper.dart

Issue 14986002: Make static tear-off closures a class, like instance tear-off closures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/lib/js_helper.dart (revision 22664)
+++ sdk/lib/_internal/compiler/implementation/lib/js_helper.dart (working copy)
@@ -1094,18 +1094,6 @@
Primitives.objectTypeName(value), 'bool');
}
-functionTypeCheck(value) {
- if (value == null) return value;
- if (value is Function) return value;
- throw new TypeErrorImplementation(value, 'Function');
-}
-
-functionTypeCast(value) {
- if (value is Function || value == null) return value;
- throw new CastErrorImplementation(
- Primitives.objectTypeName(value), 'Function');
-}
-
intTypeCheck(value) {
if (value == null) return value;
if (value is int) return value;

Powered by Google App Engine
This is Rietveld 408576698