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

Unified Diff: src/json-stringifier.h

Issue 1097703002: Wrap JSON and generator implementation in functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/json.js ('k') | no next file » | no next file with comments »
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 fabc8f39299196e0d08b7f5f575b3c98a18db046..444de43e7bc79b04cc2aa0238f1159d62b774413 100644
--- a/src/json-stringifier.h
+++ b/src/json-stringifier.h
@@ -361,8 +361,9 @@ BasicJsonStringifier::Result BasicJsonStringifier::SerializeGeneric(
bool deferred_comma,
bool deferred_key) {
Handle<JSObject> builtins(isolate_->native_context()->builtins(), isolate_);
- Handle<JSFunction> builtin = Handle<JSFunction>::cast(Object::GetProperty(
- isolate_, builtins, "JSONSerializeAdapter").ToHandleChecked());
+ Handle<JSFunction> builtin = Handle<JSFunction>::cast(
+ Object::GetProperty(isolate_, builtins, "$jsonSerializeAdapter")
+ .ToHandleChecked());
Handle<Object> argv[] = { key, object };
Handle<Object> result;
« no previous file with comments | « src/json.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698