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

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

Issue 2597943002: Revert "Runtime support for Null as any in dart2js". (Closed)
Patch Set: Created 4 years 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 | « no previous file | sdk/lib/_internal/js_runtime/lib/js_rti.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/js_runtime/lib/js_helper.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/js_helper.dart b/sdk/lib/_internal/js_runtime/lib/js_helper.dart
index 07d1cbb60b64be5572297a6b6252656ed7ee68e3..a80f0e243ae5db915c12811c786ca1ab66a4ada3 100644
--- a/sdk/lib/_internal/js_runtime/lib/js_helper.dart
+++ b/sdk/lib/_internal/js_runtime/lib/js_helper.dart
@@ -154,15 +154,6 @@ bool isDartFunctionTypeRti(Object type) {
JS_GET_NAME(JsGetName.FUNCTION_CLASS_TYPE_NAME));
}
-/// Returns true if the given [type] is _the_ `Null` type.
-@ForceInline()
-bool isNullType(Object type) {
- return JS_BUILTIN('returns:bool;effects:none;depends:none',
- JsBuiltin.isGivenTypeRti,
- type,
- JS_GET_NAME(JsGetName.NULL_CLASS_TYPE_NAME));
-}
-
/// Returns whether the given type is _the_ Dart Object type.
// TODO(floitsch): move this to foreign_helper.dart or similar.
@ForceInline()
« no previous file with comments | « no previous file | sdk/lib/_internal/js_runtime/lib/js_rti.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698