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

Unified Diff: src/json.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/hydrogen-instructions.cc ('k') | src/messages.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/json.js
diff --git a/src/json.js b/src/json.js
index 3bc52cbbf5dbedd475e1c2069b2e474454b8cdda..8d046ee95536d1c47164afd10bf2871094454589 100644
--- a/src/json.js
+++ b/src/json.js
@@ -252,8 +252,6 @@ function JsonSerializeAdapter(key, object) {
return JSONSerialize(key, holder, UNDEFINED, new InternalArray(), "", "");
}
-utils.ExportToRuntime(function(to) {
- to["json_serialize_adapter"] = JsonSerializeAdapter;
-});
+%InstallToContext(["json_serialize_adapter", JsonSerializeAdapter]);
})
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698