Chromium Code Reviews

Unified Diff: pkg/yaml/lib/src/yaml_map.dart

Issue 277593005: Fix analyzer warnings in the YAML package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« pkg/yaml/lib/src/parser.dart ('K') | « pkg/yaml/lib/src/parser.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/yaml/lib/src/yaml_map.dart
diff --git a/pkg/yaml/lib/src/yaml_map.dart b/pkg/yaml/lib/src/yaml_map.dart
index ab07c72b48d5aa98823159d954a10e5c8aa4d976..5e3e20a6f3cf7d50bc77b7d0e4107f2cfb16f43b 100644
--- a/pkg/yaml/lib/src/yaml_map.dart
+++ b/pkg/yaml/lib/src/yaml_map.dart
@@ -55,7 +55,7 @@ class YamlMap implements Map {
/// Wraps an object for use as a key in the map.
_wrapKey(obj) {
if (obj != null && obj is! bool && obj is! List &&
- (obj is! double || !obj.isNan) &&
+ (obj is! num || !obj.isNaN) &&
(obj is! Map || obj is YamlMap)) {
return obj;
} else if (obj is Map) {
« pkg/yaml/lib/src/parser.dart ('K') | « pkg/yaml/lib/src/parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine