Index: tools/dom/src/native_DOMImplementation.dart |
diff --git a/tools/dom/src/native_DOMImplementation.dart b/tools/dom/src/native_DOMImplementation.dart |
index d7a3fe654b3b69354685ae23743a33b676c03499..d84e39642d2b70ee6109a3f3526458306b73e5bc 100644 |
--- a/tools/dom/src/native_DOMImplementation.dart |
+++ b/tools/dom/src/native_DOMImplementation.dart |
@@ -406,7 +406,7 @@ class _Utils { |
// TODO(vsm): Move these checks into native code. |
ClassMirror cls = reflectClass(type); |
if (_isBuiltinType(cls)) { |
- throw new UnsupportedError("Invalid custom element from ${cls.owner.uri}."); |
+ throw new UnsupportedError("Invalid custom element from ${(cls.owner as LibraryMirror).uri}."); |
} |
var className = MirrorSystem.getName(cls.simpleName); |
var createdConstructor = cls.declarations[new Symbol('$className.created')]; |