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

Unified Diff: Source/bindings/core/dart/DartJsInterop.cpp

Issue 2145753010: Fix JSON.stringify behavior for Dart Lists faking being arrays by adding stringify method. Test is … (Closed) Base URL: https://chromium.googlesource.com/dart/dartium/blink.git@master
Patch Set: Created 4 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/dart/DartJsInterop.cpp
diff --git a/Source/bindings/core/dart/DartJsInterop.cpp b/Source/bindings/core/dart/DartJsInterop.cpp
index bc11363f5329cbf61b3d7981ef0992e53fd1c0dd..21084ab56922857fea6e019d7fe0aca39aeeb84e 100644
--- a/Source/bindings/core/dart/DartJsInterop.cpp
+++ b/Source/bindings/core/dart/DartJsInterop.cpp
@@ -2823,6 +2823,7 @@ v8::Local<v8::FunctionTemplate> dartListTemplate(v8::Isolate* v8Isolate)
protoTemplate ->Set(v8::String::NewFromUtf8(v8Isolate, "splice"), v8::FunctionTemplate::New(v8Isolate, arraySpliceCallback), v8::DontEnum);
protoTemplate ->Set(v8::String::NewFromUtf8(v8Isolate, "sort"), v8::FunctionTemplate::New(v8Isolate, arraySortCallback), v8::DontEnum);
protoTemplate ->Set(v8::String::NewFromUtf8(v8Isolate, "$toJsArray"), v8::FunctionTemplate::New(v8Isolate, toJsArrayCallback), v8::DontEnum);
+ protoTemplate ->Set(v8::String::NewFromUtf8(v8Isolate, "toJSON"), v8::FunctionTemplate::New(v8Isolate, toJsArrayCallback), v8::DontEnum);
// ES6 experimental properties not currently supported that we could support if needed.
// These would require building separate live proxy objects.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698