| Index: tools/idl_parser/idl_parser.py
|
| diff --git a/tools/idl_parser/idl_parser.py b/tools/idl_parser/idl_parser.py
|
| index af0bd0555eeff9f9f11e15f785e32d547e6404bb..0fa9b616bae8672ba6a760a90f90e60a2c0dc430 100755
|
| --- a/tools/idl_parser/idl_parser.py
|
| +++ b/tools/idl_parser/idl_parser.py
|
| @@ -324,8 +324,12 @@ class IDLParser(object):
|
| # [17]
|
| def p_DefaultValue(self, p):
|
| """DefaultValue : ConstValue
|
| - | string"""
|
| - if type(p[1]) == str:
|
| + | string
|
| + | '[' ']'"""
|
| + if len(p) == 3:
|
| + p[0] = ListFromConcat(self.BuildAttribute('TYPE', 'sequence'),
|
| + self.BuildAttribute('VALUE', '[]'))
|
| + elif type(p[1]) == str:
|
| p[0] = ListFromConcat(self.BuildAttribute('TYPE', 'DOMString'),
|
| self.BuildAttribute('NAME', p[1]))
|
| else:
|
|
|