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

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

Issue 60293003: Version 0.8.10.5 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart ('k') | dart/sdk/lib/io/http.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/lib/js_helper.dart
===================================================================
--- dart/sdk/lib/_internal/lib/js_helper.dart (revision 29908)
+++ dart/sdk/lib/_internal/lib/js_helper.dart (working copy)
@@ -1921,6 +1921,11 @@
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
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart ('k') | dart/sdk/lib/io/http.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698