Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: test/cctest/test-api.cc

Issue 1402973002: Move some code from Runtime_GetPrototype into a new Object::GetPrototype. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index 81dc67d8e2aad73880402a4cd4d18d293682daf3..f8edb2b5a444304a99c35224a6e859442d9c039f 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -17989,13 +17989,6 @@ THREADED_TEST(Regress93759) {
Object::New(isolate);
object_with_hidden->SetPrototype(hidden_prototype);
- // Hidden prototype with security check on the hidden prototype.
- Local<Object> protected_hidden_prototype =
- protected_hidden_proto_template->GetFunction()->NewInstance();
- Local<Object> object_with_protected_hidden =
- Object::New(isolate);
- object_with_protected_hidden->SetPrototype(protected_hidden_prototype);
-
context->Exit();
// Template for object for second context. Values to test are put on it as
@@ -18006,7 +17999,6 @@ THREADED_TEST(Regress93759) {
global_template->Set(v8_str("global"), global_object);
global_template->Set(v8_str("proxy"), proxy_object);
global_template->Set(v8_str("hidden"), object_with_hidden);
- global_template->Set(v8_str("phidden"), object_with_protected_hidden);
LocalContext context2(NULL, global_template);
@@ -18025,9 +18017,6 @@ THREADED_TEST(Regress93759) {
Local<Value> result5 = CompileRun("Object.getPrototypeOf(hidden)");
CHECK(result5->Equals(
object_with_hidden->GetPrototype()->ToObject(isolate)->GetPrototype()));
-
- Local<Value> result6 = CompileRun("Object.getPrototypeOf(phidden)");
- CHECK(result6->IsNull());
}
« no previous file with comments | « src/runtime/runtime-object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698