зеркало из https://github.com/mozilla/gecko-dev.git
Bug 997285 part 4. Drop the custom stringifier from DOMException in favor of the default one on Error.prototype. r=peterv
This commit is contained in:
Родитель
f006a13769
Коммит
45206a3b85
|
@ -18,11 +18,18 @@ interface StackFrame;
|
|||
[NoInterfaceObject]
|
||||
interface ExceptionMembers
|
||||
{
|
||||
// A custom message set by the thrower.
|
||||
// A custom message set by the thrower. LenientThis so it can be
|
||||
// gotten on the prototype, which Error.prototype.toString will do
|
||||
// if someone tries to stringify DOMException.prototype.
|
||||
[LenientThis]
|
||||
readonly attribute DOMString message;
|
||||
// The nsresult associated with this exception.
|
||||
readonly attribute unsigned long result;
|
||||
// The name of the error code (ie, a string repr of |result|)
|
||||
// The name of the error code (ie, a string repr of |result|).
|
||||
// LenientThis so it can be gotten on the prototype, which
|
||||
// Error.prototype.toString will do if someone tries to stringify
|
||||
// DOMException.prototype.
|
||||
[LenientThis]
|
||||
readonly attribute DOMString name;
|
||||
|
||||
// Filename location. This is the location that caused the
|
||||
|
@ -49,13 +56,12 @@ interface ExceptionMembers
|
|||
|
||||
// Arbitary data for the implementation.
|
||||
readonly attribute nsISupports? data;
|
||||
|
||||
// A generic formatter - make it suitable to print, etc.
|
||||
stringifier;
|
||||
};
|
||||
|
||||
[NoInterfaceObject]
|
||||
interface Exception {
|
||||
// A generic formatter - make it suitable to print, etc.
|
||||
stringifier;
|
||||
};
|
||||
|
||||
Exception implements ExceptionMembers;
|
||||
|
|
Загрузка…
Ссылка в новой задаче