Index: Source/bindings/scripts/v8_methods.py |
diff --git a/Source/bindings/scripts/v8_methods.py b/Source/bindings/scripts/v8_methods.py |
index 7b7c0cc25848acbd0568344f430a70b3d3970c10..7585823b7c92a2db63ec052631dd4c7bd8c699de 100644 |
--- a/Source/bindings/scripts/v8_methods.py |
+++ b/Source/bindings/scripts/v8_methods.py |
@@ -405,7 +405,7 @@ def v8_value_to_local_cpp_value(method, argument, index, return_promise=False, r |
# Auxiliary functions |
################################################################################ |
-# [NotEnumerable] |
+# [NotEnumerable], [Unforgeable] |
def property_attributes(interface, method): |
extended_attributes = method.extended_attributes |
property_attributes_list = [] |
@@ -413,8 +413,7 @@ def property_attributes(interface, method): |
property_attributes_list.append('v8::DontEnum') |
if is_unforgeable(interface, method): |
property_attributes_list.append('v8::ReadOnly') |
- if property_attributes_list: |
- property_attributes_list.insert(0, 'v8::DontDelete') |
+ property_attributes_list.append('v8::DontDelete') |
return property_attributes_list |