| Index: test/cctest/test-strings.cc
|
| diff --git a/test/cctest/test-strings.cc b/test/cctest/test-strings.cc
|
| index e992f33c8bc8aaf91e4951398ff1e70e6851ba0d..770042d8148510feba57502b0c6852f3dccf9860 100644
|
| --- a/test/cctest/test-strings.cc
|
| +++ b/test/cctest/test-strings.cc
|
| @@ -1508,3 +1508,25 @@ TEST(FormatMessage) {
|
| "'arg0' returned for property 'arg1' of object 'arg2' is not a function");
|
| CHECK(String::Equals(result, expected));
|
| }
|
| +
|
| +TEST(Regress609831) {
|
| + CcTest::InitializeVM();
|
| + LocalContext context;
|
| + Isolate* isolate = CcTest::i_isolate();
|
| + {
|
| + HandleScope scope(isolate);
|
| + v8::Local<v8::Value> result = CompileRun(
|
| + "String.fromCharCode(32, 32, 32, 32, 32, "
|
| + "32, 32, 32, 32, 32, 32, 32, 32, 32, 32, "
|
| + "32, 32, 32, 32, 32, 32, 32, 32, 32, 32)");
|
| + CHECK(v8::Utils::OpenHandle(*result)->IsSeqOneByteString());
|
| + }
|
| + {
|
| + HandleScope scope(isolate);
|
| + v8::Local<v8::Value> result = CompileRun(
|
| + "String.fromCharCode(432, 432, 432, 432, 432, "
|
| + "432, 432, 432, 432, 432, 432, 432, 432, 432, "
|
| + "432, 432, 432, 432, 432, 432, 432, 432, 432)");
|
| + CHECK(v8::Utils::OpenHandle(*result)->IsSeqTwoByteString());
|
| + }
|
| +}
|
|
|