diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-05-15 12:32:27 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-05-15 12:32:27 -0700 |
commit | afed8b5259db9f5a7e9a417c13669f29d8ae3d15 (patch) | |
tree | 44ca920e2bebc11570cb1f9cec8a47225703a3f3 /tools | |
parent | d470387f096d6427720a9c8a61776fa3d276683e (diff) |
support const methods, not just attributes, in webidl binder
Diffstat (limited to 'tools')
-rw-r--r-- | tools/webidl_binder.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/webidl_binder.py b/tools/webidl_binder.py index 0507cc78..168460fe 100644 --- a/tools/webidl_binder.py +++ b/tools/webidl_binder.py @@ -359,7 +359,8 @@ for name in names: m.getExtendedAttribute('Value'), (m.getExtendedAttribute('Operator') or [None])[0], constructor, - func_scope=m.parentScope.identifier.name) + func_scope=m.parentScope.identifier.name, + const=m.getExtendedAttribute('Const')) mid_js += [';\n'] if constructor: emit_constructor(name) |