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

Unified Diff: src/js/json.js

Issue 1996333002: [json] handle access checks in BasicJsonStringifier. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@jsonstringifier
Patch Set: Created 4 years, 7 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/contexts.h ('k') | src/json-stringifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/json.js
diff --git a/src/js/json.js b/src/js/json.js
index f5c0ae7a3cb7219d7d106bbf27205939871fce0c..456b20e7c38dec3267986b9ecb60d77f3b73b4d3 100644
--- a/src/js/json.js
+++ b/src/js/json.js
@@ -280,19 +280,4 @@ utils.InstallFunctions(GlobalDate.prototype, DONT_ENUM, [
"toJSON", DateToJSON
]);
-// -------------------------------------------------------------------
-// JSON Builtins
-
-function JsonSerializeAdapter(key, object, indent, gap) {
- var holder = {};
- holder[key] = object;
- // No need to pass the actual holder since there is no replacer function.
- var current_indent = "";
- for (var i = 0; i < indent; i++) current_indent += gap;
- return JSONSerialize(
- key, holder, UNDEFINED, new Stack(), current_indent, gap);
-}
-
-%InstallToContext(["json_serialize_adapter", JsonSerializeAdapter]);
-
})
« no previous file with comments | « src/contexts.h ('k') | src/json-stringifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698