Index: tools/dom/templates/html/dart2js/impl_URL.darttemplate |
diff --git a/tools/dom/templates/html/dart2js/impl_URL.darttemplate b/tools/dom/templates/html/dart2js/impl_URL.darttemplate |
index d8c8a7584e5042003552f40e404708756aaf2161..1e14cca2492aac5fc635aae6423618516d9d877f 100644 |
--- a/tools/dom/templates/html/dart2js/impl_URL.darttemplate |
+++ b/tools/dom/templates/html/dart2js/impl_URL.darttemplate |
@@ -23,5 +23,10 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS |
static void revokeObjectUrl(String url) => |
JS('void', |
'(self.URL || self.webkitURL).revokeObjectURL(#)', url); |
+ |
+ @DomName('URL.toString') |
+ @DocsEditable() |
+ String toString() => JS('String', 'String(#)', this); |
+ |
$!MEMBERS |
} |