aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-12-25 05:04:00 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2016-02-23 17:23:56 +0100
commit86f3f37950b41d4aa0dff557b1a5c9261ea26443 (patch)
treef300ab4ef076e41505db17bb46ced908792a9441 /components/script/dom/bindings/codegen/CodegenRust.py
parent7696a6bd203a2200ca7a3360f8911ee1befdce14 (diff)
downloadservo-86f3f37950b41d4aa0dff557b1a5c9261ea26443.tar.gz
servo-86f3f37950b41d4aa0dff557b1a5c9261ea26443.zip
Always implement getOwnEnumerablePropertyKeys
According to JSProxy.h, without this the default implementation calls ownPropertyKeys and filters out the unenumerable properties. We know when such things exist so we don't need to do that.
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 6d626bea0ca..27272370cc1 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -2602,9 +2602,9 @@ class CGDefineProxyHandler(CGAbstractMethod):
if self.descriptor.operations['NamedDeleter']:
customDelete = 'delete'
- getOwnEnumerablePropertyKeys = "None"
+ getOwnEnumerablePropertyKeys = "own_property_keys"
if self.descriptor.interface.getExtendedAttribute("LegacyUnenumerableNamedProperties"):
- getOwnEnumerablePropertyKeys = "Some(getOwnEnumerablePropertyKeys)"
+ getOwnEnumerablePropertyKeys = "getOwnEnumerablePropertyKeys"
args = {
"defineProperty": customDefineProperty,
@@ -2631,7 +2631,7 @@ let traps = ProxyTraps {
construct: None,
getPropertyDescriptor: Some(get_property_descriptor),
hasOwn: Some(hasOwn),
- getOwnEnumerablePropertyKeys: %(getOwnEnumerablePropertyKeys)s,
+ getOwnEnumerablePropertyKeys: Some(%(getOwnEnumerablePropertyKeys)s),
nativeCall: None,
hasInstance: None,
objectClassIs: None,