Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 92ab5b8546959c820af1cd46ddfd485e80e0a83a..511a9440b2c83172b61516ed6fb5121667dbdc6f 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -19863,6 +19863,16 @@ THREADED_TEST(Regress260106) { |
} |
+THREADED_TEST(JSONParse) { |
+ LocalContext context; |
+ HandleScope scope(context->GetIsolate()); |
+ Local<Object> obj = v8::JSON::Parse(v8_str("{\"x\":42}")); |
+ Handle<Object> global = context->Global(); |
+ global->Set(v8_str("obj"), obj); |
+ ExpectString("JSON.stringify(obj)", "{\"x\":42}"); |
+} |
+ |
+ |
#ifndef WIN32 |
class ThreadInterruptTest { |
public: |