Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(609)

Unified Diff: src/proxy.js

Issue 1306993003: Call JS functions via native context instead of js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/promise.js ('k') | src/regexp.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
+]);
})
« no previous file with comments | « src/promise.js ('k') | src/regexp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698