| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 26895642ed3482f7d306007a3cc0143185c6a5e7..8bd3fbe6263225e8b65e472b1d21584fcdb5bedd 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -5950,7 +5950,7 @@ THREADED_TEST(IndexedInterceptorUnboxedDoubleWithIndexedAccessor) {
|
| }
|
|
|
|
|
| -void NonStrictArgsIndexedPropertyEnumerator(
|
| +void SloppyArgsIndexedPropertyEnumerator(
|
| const v8::PropertyCallbackInfo<v8::Array>& info) {
|
| // Force the list of returned keys to be stored in a Arguments object.
|
| Local<Script> indexed_property_names_script = Script::Compile(v8_str(
|
| @@ -5969,7 +5969,7 @@ void NonStrictArgsIndexedPropertyEnumerator(
|
| }
|
|
|
|
|
| -static void NonStrictIndexedPropertyGetter(
|
| +static void SloppyIndexedPropertyGetter(
|
| uint32_t index,
|
| const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| ApiTestFuzzer::Fuzz();
|
| @@ -5981,15 +5981,15 @@ static void NonStrictIndexedPropertyGetter(
|
|
|
| // Make sure that the the interceptor code in the runtime properly handles
|
| // merging property name lists for non-string arguments arrays.
|
| -THREADED_TEST(IndexedInterceptorNonStrictArgsWithIndexedAccessor) {
|
| +THREADED_TEST(IndexedInterceptorSloppyArgsWithIndexedAccessor) {
|
| v8::Isolate* isolate = CcTest::isolate();
|
| v8::HandleScope scope(isolate);
|
| Local<ObjectTemplate> templ = ObjectTemplate::New(isolate);
|
| - templ->SetIndexedPropertyHandler(NonStrictIndexedPropertyGetter,
|
| + templ->SetIndexedPropertyHandler(SloppyIndexedPropertyGetter,
|
| 0,
|
| 0,
|
| 0,
|
| - NonStrictArgsIndexedPropertyEnumerator);
|
| + SloppyArgsIndexedPropertyEnumerator);
|
| LocalContext context;
|
| context->Global()->Set(v8_str("obj"), templ->NewInstance());
|
| Local<Script> create_args_script =
|
| @@ -15677,19 +15677,19 @@ THREADED_TEST(PixelArray) {
|
| reinterpret_cast<i::Isolate*>(context->GetIsolate()));
|
| i::Handle<i::Object> no_failure;
|
| no_failure =
|
| - i::JSObject::SetElement(jsobj, 1, value, NONE, i::kNonStrictMode);
|
| + i::JSObject::SetElement(jsobj, 1, value, NONE, i::kSloppyMode);
|
| ASSERT(!no_failure.is_null());
|
| i::USE(no_failure);
|
| CheckElementValue(isolate, 2, jsobj, 1);
|
| *value.location() = i::Smi::FromInt(256);
|
| no_failure =
|
| - i::JSObject::SetElement(jsobj, 1, value, NONE, i::kNonStrictMode);
|
| + i::JSObject::SetElement(jsobj, 1, value, NONE, i::kSloppyMode);
|
| ASSERT(!no_failure.is_null());
|
| i::USE(no_failure);
|
| CheckElementValue(isolate, 255, jsobj, 1);
|
| *value.location() = i::Smi::FromInt(-1);
|
| no_failure =
|
| - i::JSObject::SetElement(jsobj, 1, value, NONE, i::kNonStrictMode);
|
| + i::JSObject::SetElement(jsobj, 1, value, NONE, i::kSloppyMode);
|
| ASSERT(!no_failure.is_null());
|
| i::USE(no_failure);
|
| CheckElementValue(isolate, 0, jsobj, 1);
|
|
|