aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-05-15 12:32:27 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-05-15 12:32:27 -0700
commitafed8b5259db9f5a7e9a417c13669f29d8ae3d15 (patch)
tree44ca920e2bebc11570cb1f9cec8a47225703a3f3 /tools
parentd470387f096d6427720a9c8a61776fa3d276683e (diff)
support const methods, not just attributes, in webidl binder
Diffstat (limited to 'tools')
-rw-r--r--tools/webidl_binder.py3
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)