js(build): fix generator with Python3
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 20 Dec 2020 17:42:47 +0000 (17:42 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 20 Dec 2020 17:42:47 +0000 (17:42 +0000)
- class_info.props is a 'list'

modules/js/generator/embindgen.py

index 8a25e42065dfcc1277f39597ab810d194a619f1b..c5cca145242d18c8d9de01debb4a21acd4f782ad 100644 (file)
@@ -820,7 +820,7 @@ class JSWrapperGenerator(object):
 
 
             # Generate bindings for properties
-            for property in sorted(class_info.props):
+            for property in class_info.props:
                 _class_property = class_property_enum_template if property.tp in type_dict else class_property_template
                 class_bindings.append(_class_property.substitute(js_name=property.name, cpp_name='::'.join(
                     [class_info.cname, property.name])))