Index: tools/dom/src/native_DOMImplementation.dart |
diff --git a/tools/dom/src/native_DOMImplementation.dart b/tools/dom/src/native_DOMImplementation.dart |
index 037f4cd8807c3ce86b3273a2bf90a6892287b16b..c29848a3d10cc4cdf7f67d82ddf53786efcd6878 100644 |
--- a/tools/dom/src/native_DOMImplementation.dart |
+++ b/tools/dom/src/native_DOMImplementation.dart |
@@ -87,6 +87,8 @@ class _Utils { |
static bool isMap(obj) => obj is Map; |
+ static List toListIfIterable(obj) => obj is Iterable ? obj.toList() : null; |
+ |
static Map createMap() => {}; |
static makeUnimplementedError(String fileName, int lineNo) { |
@@ -390,10 +392,6 @@ class _Utils { |
static bool isNoSuchMethodError(obj) => obj is NoSuchMethodError; |
- // TODO(jacobr): we need a failsafe way to determine that a Node is really a |
- // DOM node rather than just a class that extends Node. |
- static bool isNode(obj) => obj is Node; |
- |
static bool _isBuiltinType(ClassMirror cls) { |
// TODO(vsm): Find a less hackish way to do this. |
LibraryMirror lib = cls.owner; |