tenfourfox/testing/web-platform/tests/WebIDL/invalid/idl/raises.widl
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

18 lines
575 B
Plaintext

// getraises and setraises are not longer valid Web IDL
interface Person {
// An attribute that can raise an exception if it is set to an invalid value.
attribute DOMString name setraises (InvalidName);
// An attribute whose value cannot be assigned to, and which can raise an
// exception some circumstances.
readonly attribute DOMString petName getraises (NoSuchPet);
};
exception SomeException {
};
interface ExceptionThrower {
// This attribute always throws a SomeException and never returns a value.
attribute long valueOf getraises(SomeException);
};