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:
Boris Zbarsky 2017-07-17 23:21:21 -04:00
Родитель efe126200b
Коммит 4e6a3f8350
1 изменённых файлов: 1 добавлений и 8 удалений

Просмотреть файл

@ -19,18 +19,11 @@ interface StackFrame;
Exposed=(Window,Worker)]
interface ExceptionMembers
{
// 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]
// A custom message set by the thrower.
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|).
// 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