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

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

Issue 12334070: Support runtime check of function types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix status files Created 7 years, 6 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/lib/js_helper.dart
diff --git a/sdk/lib/_internal/lib/js_helper.dart b/sdk/lib/_internal/lib/js_helper.dart
index cd4e627f8b9f9e0ec02109d88fd2d231417dc98d..f12d86b6c4c8f7865dd14840899f2d45f8b5ef32 100644
--- a/sdk/lib/_internal/lib/js_helper.dart
+++ b/sdk/lib/_internal/lib/js_helper.dart
@@ -11,11 +11,22 @@ import 'dart:_foreign_helper' show DART_CLOSURE_TO_JS,
JS_CURRENT_ISOLATE,
JS_CURRENT_ISOLATE_CONTEXT,
JS_DART_OBJECT_CONSTRUCTOR,
+ JS_FUNCTION_CLASS_NAME,
JS_IS_INDEXABLE_FIELD_NAME,
JS_OBJECT_CLASS_NAME,
JS_OPERATOR_AS_PREFIX,
JS_OPERATOR_IS_PREFIX,
- RAW_DART_FUNCTION_REF;
+ JS_SETUP_OBJECT,
+ JS_SIGNATURE_NAME,
+ JS_HAS_EQUALS,
+ JS_FUNCTION_TYPE_TAG,
+ JS_FUNCTION_TYPE_VOID_RETURN_TAG,
+ JS_FUNCTION_TYPE_RETURN_TYPE_TAG,
+ JS_FUNCTION_TYPE_REQUIRED_PARAMETERS_TAG,
+ JS_FUNCTION_TYPE_OPTIONAL_PARAMETERS_TAG,
+ JS_FUNCTION_TYPE_NAMED_PARAMETERS_TAG,
+ RAW_DART_FUNCTION_REF,
+ UNINTERCEPTED;
karlklose 2013/06/19 14:37:05 Remove?
Johnni Winther 2013/06/21 12:19:15 Done.
import 'dart:_interceptors';
import "dart:_collection-dev" as _symbol_dev;
@@ -186,7 +197,7 @@ class Primitives {
JS('void', 'throw "Unable to print message: " + String(#)', string);
}
- static void _throwFormatException(String string) {
+ static _throwFormatException(String string) {
throw new FormatException(string);
}

Powered by Google App Engine
This is Rietveld 408576698