зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1378985. Align DOMException webidl with the updated spec. r=qdot
This makes DOMException.prototype.toString() throw when it wouldn't have before. But it throws in other browsers already, so this is presumably web-compatible.
This commit is contained in:
Родитель
efe126200b
Коммит
4e6a3f8350
|
@ -19,18 +19,11 @@ interface StackFrame;
|
||||||
Exposed=(Window,Worker)]
|
Exposed=(Window,Worker)]
|
||||||
interface ExceptionMembers
|
interface ExceptionMembers
|
||||||
{
|
{
|
||||||
// A custom message set by the thrower. LenientThis so it can be
|
// A custom message set by the thrower.
|
||||||
// gotten on the prototype, which Error.prototype.toString will do
|
|
||||||
// if someone tries to stringify DOMException.prototype.
|
|
||||||
[LenientThis]
|
|
||||||
readonly attribute DOMString message;
|
readonly attribute DOMString message;
|
||||||
// The nsresult associated with this exception.
|
// The nsresult associated with this exception.
|
||||||
readonly attribute unsigned long result;
|
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;
|
readonly attribute DOMString name;
|
||||||
|
|
||||||
// Filename location. This is the location that caused the
|
// Filename location. This is the location that caused the
|
||||||
|
|
Загрузка…
Ссылка в новой задаче