| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 1cde03f0d7bc08d354a495f16ee0dd17f07c9104..16e1f47543ce7ccd4b950d5db1f59712bf88ad2e 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -1849,8 +1849,8 @@ THREADED_TEST(PropertyHandlerInPrototype) {
|
| Local<v8::Object> top = templ->GetFunction()->NewInstance();
|
| Local<v8::Object> middle = templ->GetFunction()->NewInstance();
|
|
|
| - bottom->SetPrototype(middle);
|
| - middle->SetPrototype(top);
|
| + bottom->Set(v8_str("__proto__"), middle);
|
| + middle->Set(v8_str("__proto__"), top);
|
| env->Global()->Set(v8_str("obj"), bottom);
|
|
|
| // Indexed and named get.
|
| @@ -9671,7 +9671,7 @@ THREADED_TEST(InterceptorCallICCacheableNotNeeded) {
|
| call_ic_function4 =
|
| v8_compile("function f(x) { return x - 1; }; f")->Run();
|
| v8::Handle<Value> value = CompileRun(
|
| - "Object.getPrototypeOf(o).x = function(x) { return x + 1; };"
|
| + "o.__proto__.x = function(x) { return x + 1; };"
|
| "var result = 0;"
|
| "for (var i = 0; i < 1000; i++) {"
|
| " result = o.x(42);"
|
|
|