mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Use ToJSValConvertible to convert enums to JSVal.
This commit is contained in:
parent
9a909229e3
commit
ccaa46e4a3
3 changed files with 17 additions and 9 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue