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

Unified Diff: dart/runtime/lib/symbol_patch.dart

Issue 13963007: Remove redundant type check. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/lib/symbol_patch.dart
diff --git a/dart/runtime/lib/symbol_patch.dart b/dart/runtime/lib/symbol_patch.dart
index 4359019fd74dc7b26f49aede99fd9c875fe2f169..df76a933315b69cbef435a977ae3d421b75d6e47 100644
--- a/dart/runtime/lib/symbol_patch.dart
+++ b/dart/runtime/lib/symbol_patch.dart
@@ -31,7 +31,6 @@ patch class Symbol {
r')$');
static _validate(String name) {
- if (name is! String) throw new ArgumentError('name must be a String');
if (name.isEmpty) return name;
if (name.startsWith('_')) {
throw new ArgumentError('"$name" is a private identifier');
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698