mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Stringifier is sno longer exposed
This commit is contained in:
parent
a5c368fd01
commit
981d13dcfc
4 changed files with 6 additions and 26 deletions
|
@ -149,6 +149,11 @@ impl DOMException {
|
|||
DOMExceptionBinding::Wrap,
|
||||
))
|
||||
}
|
||||
|
||||
// not an IDL stringifier, used internally
|
||||
pub fn stringifier(&self) -> DOMString {
|
||||
DOMString::from(format!("{}: {}", self.name, self.message))
|
||||
}
|
||||
}
|
||||
|
||||
impl DOMExceptionMethods for DOMException {
|
||||
|
@ -169,9 +174,4 @@ impl DOMExceptionMethods for DOMException {
|
|||
fn Message(&self) -> DOMString {
|
||||
self.message.clone()
|
||||
}
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-error.prototype.tostring
|
||||
fn Stringifier(&self) -> DOMString {
|
||||
DOMString::from(format!("{}: {}", self.name, self.message))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue