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. |