Use ToJSValConvertible to convert enums to JSVal.

This commit is contained in:
Ms2ger 2014-04-06 19:40:24 +02:00
parent 9a909229e3
commit ccaa46e4a3
3 changed files with 17 additions and 9 deletions

View file

@ -2,6 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
enum TestEnum { "", "foo", "bar" };
interface TestBinding {
attribute boolean booleanAttribute;
attribute byte byteAttribute;
@ -15,6 +17,7 @@ interface TestBinding {
attribute float floatAttribute;
attribute double doubleAttribute;
attribute DOMString stringAttribute;
readonly attribute TestEnum enumAttribute;
attribute Blob interfaceAttribute;
attribute any anyAttribute;