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

Unified Diff: src/json-stringifier.h

Issue 2328523002: [JSON] call replacer function with correct holder in JSON.stringify (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | src/json-stringifier.cc » ('j') | src/json-stringifier.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/json-stringifier.h
diff --git a/src/json-stringifier.h b/src/json-stringifier.h
index 5ce8f50cb1b565fa554a6d185d6316923edc22e0..ee94006ce59d079323da49d6b9d2ff62351573f0 100644
--- a/src/json-stringifier.h
+++ b/src/json-stringifier.h
@@ -31,7 +31,7 @@ class JsonStringifier BASE_EMBEDDED {
Handle<Object> object,
Handle<Object> key);
MUST_USE_RESULT MaybeHandle<Object> ApplyReplacerFunction(
- Handle<Object> object, Handle<Object> key);
+ Handle<Object> object, Handle<Object> key, Handle<Object> initial_value);
Camillo Bruni 2016/09/08 15:45:26 nit: I'd prefer value vs. object and initial_objec
// Entry point to serialize the object.
INLINE(Result SerializeObject(Handle<Object> obj)) {
@@ -99,7 +99,8 @@ class JsonStringifier BASE_EMBEDDED {
INLINE(void Unindent() { indent_--; });
INLINE(void Separator(bool first));
- Handle<JSReceiver> CurrentHolder(Handle<Object> value);
+ Handle<JSReceiver> CurrentHolder(Handle<Object> value,
+ Handle<Object> inital_value);
Result StackPush(Handle<Object> object);
void StackPop();
« no previous file with comments | « no previous file | src/json-stringifier.cc » ('j') | src/json-stringifier.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698