Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index 10bc3cdbb2515d0566f9b48a509cffe3ff984677..45cd0cd001eb6579fbb3a6979edc072e3033d8d8 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -8,6 +8,7 @@ |
#include "src/bootstrapper.h" |
#include "src/debug/debug.h" |
#include "src/isolate-inl.h" |
+#include "src/json-stringifier.h" |
#include "src/messages.h" |
#include "src/property-descriptor.h" |
#include "src/runtime/runtime.h" |
@@ -225,6 +226,15 @@ MaybeHandle<Object> Runtime::SetObjectProperty(Isolate* isolate, |
return value; |
} |
+MaybeHandle<Object> Runtime::BasicJsonStringify(Isolate* isolate, |
+ Handle<Object> object) { |
+ return BasicJsonStringifier(isolate).Stringify(object); |
+} |
+ |
+MaybeHandle<Object> Runtime::BasicJsonStringifyString(Isolate* isolate, |
+ Handle<String> string) { |
+ return BasicJsonStringifier::StringifyString(isolate, string); |
+} |
RUNTIME_FUNCTION(Runtime_GetPrototype) { |
HandleScope scope(isolate); |