Index: src/proxy.js |
diff --git a/src/proxy.js b/src/proxy.js |
index 6f18609400b793eab3356eb1fc72ce21fccfb380..c8ad42ff84aba88b8558406b4ecf1bf1101d22b6 100644 |
--- a/src/proxy.js |
+++ b/src/proxy.js |
@@ -200,11 +200,11 @@ utils.Export(function(to) { |
to.ProxyDerivedKeysTrap = DerivedKeysTrap; |
}); |
-utils.ExportToRuntime(function(to) { |
- to["derived_get_trap"] = DerivedGetTrap; |
- to["derived_has_trap"] = DerivedHasTrap; |
- to["derived_set_trap"] = DerivedSetTrap; |
- to["proxy_enumerate"] = ProxyEnumerate; |
-}); |
+%InstallToContext([ |
+ "derived_get_trap", DerivedGetTrap, |
+ "derived_has_trap", DerivedHasTrap, |
+ "derived_set_trap", DerivedSetTrap, |
+ "proxy_enumerate", ProxyEnumerate, |
+]); |
}) |