Add stringifier method support to CodegenRust.py (fixes #1986)

Add a stringifier to URLUtils (Location). (fixes #4605)

wpt metadata updates for #4605
This commit is contained in:
Chris Manchester 2015-01-18 17:12:35 -05:00
parent d1c8ed4359
commit 00f863b4fe
6 changed files with 69 additions and 52 deletions

View file

@ -47,6 +47,10 @@ impl<'a> LocationMethods for JSRef<'a, Location> {
UrlHelper::Href(&self.page.get_url())
}
fn Stringify(self) -> DOMString {
self.Href()
}
fn Search(self) -> DOMString {
UrlHelper::Search(&self.page.get_url())
}