| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index c2e5382c3850a17dad64df959bc390338364709f..aa3269e67686b7cca7e5198255460e31733a60a8 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -3039,7 +3039,8 @@ THREADED_TEST(DefinePropertyOnAPIAccessor) {
|
| result = script_define->Run();
|
| CHECK(try_catch.HasCaught());
|
| String::AsciiValue exception_value(try_catch.Exception());
|
| - CHECK_EQ(*exception_value, "TypeError: Cannot redefine property: x");
|
| + CHECK_EQ(*exception_value,
|
| + "TypeError: Cannot redefine property: defineProperty");
|
| }
|
|
|
| THREADED_TEST(DefinePropertyOnDefineGetterSetter) {
|
| @@ -3084,7 +3085,8 @@ THREADED_TEST(DefinePropertyOnDefineGetterSetter) {
|
| result = script_define->Run();
|
| CHECK(try_catch.HasCaught());
|
| String::AsciiValue exception_value(try_catch.Exception());
|
| - CHECK_EQ(*exception_value, "TypeError: Cannot redefine property: x");
|
| + CHECK_EQ(*exception_value,
|
| + "TypeError: Cannot redefine property: defineProperty");
|
| }
|
|
|
|
|
| @@ -3202,7 +3204,8 @@ THREADED_TEST(DontDeleteAPIAccessorsCannotBeOverriden) {
|
| "{get: function() { return 'func'; }})");
|
| CHECK(try_catch.HasCaught());
|
| String::AsciiValue exception_value(try_catch.Exception());
|
| - CHECK_EQ(*exception_value, "TypeError: Cannot redefine property: x");
|
| + CHECK_EQ(*exception_value,
|
| + "TypeError: Cannot redefine property: defineProperty");
|
| }
|
| {
|
| v8::TryCatch try_catch;
|
| @@ -3210,7 +3213,8 @@ THREADED_TEST(DontDeleteAPIAccessorsCannotBeOverriden) {
|
| "{get: function() { return 'func'; }})");
|
| CHECK(try_catch.HasCaught());
|
| String::AsciiValue exception_value(try_catch.Exception());
|
| - CHECK_EQ(*exception_value, "TypeError: Cannot redefine property: x");
|
| + CHECK_EQ(*exception_value,
|
| + "TypeError: Cannot redefine property: defineProperty");
|
| }
|
| }
|
|
|
| @@ -9571,6 +9575,7 @@ static void CheckSurvivingGlobalObjectsCount(int expected) {
|
| // the first garbage collection but some of the maps have already
|
| // been marked at that point. Therefore some of the maps are not
|
| // collected until the second garbage collection.
|
| + HEAP->global_context_map();
|
| HEAP->CollectAllGarbage(false);
|
| HEAP->CollectAllGarbage(false);
|
| int count = GetGlobalObjectsCount();
|
| @@ -14480,25 +14485,3 @@ THREADED_TEST(CallAPIFunctionOnNonObject) {
|
| TryCatch try_catch;
|
| CompileRun("f.call(2)");
|
| }
|
| -
|
| -
|
| -// Regression test for issue 1470.
|
| -THREADED_TEST(ReadOnlyIndexedProperties) {
|
| - v8::HandleScope scope;
|
| - Local<ObjectTemplate> templ = ObjectTemplate::New();
|
| -
|
| - LocalContext context;
|
| - Local<v8::Object> obj = templ->NewInstance();
|
| - context->Global()->Set(v8_str("obj"), obj);
|
| - obj->Set(v8_str("1"), v8_str("DONT_CHANGE"), v8::ReadOnly);
|
| - obj->Set(v8_str("1"), v8_str("foobar"));
|
| - CHECK_EQ(v8_str("DONT_CHANGE"), obj->Get(v8_str("1")));
|
| - obj->Set(v8_num(2), v8_str("DONT_CHANGE"), v8::ReadOnly);
|
| - obj->Set(v8_num(2), v8_str("foobar"));
|
| - CHECK_EQ(v8_str("DONT_CHANGE"), obj->Get(v8_num(2)));
|
| -
|
| - // Test non-smi case.
|
| - obj->Set(v8_str("2000000000"), v8_str("DONT_CHANGE"), v8::ReadOnly);
|
| - obj->Set(v8_str("2000000000"), v8_str("foobar"));
|
| - CHECK_EQ(v8_str("DONT_CHANGE"), obj->Get(v8_str("2000000000")));
|
| -}
|
|
|