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

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

Issue 1734243004: Remove strong mode support from materialized literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Test expectations. Created 4 years, 10 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-literals.cc ('k') | test/message/strong-object-freeze-prop.js » ('j') | 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 e9b2fce7f051ace5ded179f59d73dbdebb73bc60..2cbef8974eeb6bff78a6d72660239240b9ccb963 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -24453,30 +24453,6 @@ TEST(StrongModeArityCallFromApi2) {
}
-TEST(StrongObjectDelete) {
- i::FLAG_strong_mode = true;
- LocalContext env;
- v8::Isolate* isolate = env->GetIsolate();
- v8::HandleScope scope(isolate);
- Local<Object> obj;
- {
- v8::TryCatch try_catch(isolate);
- obj = Local<Object>::Cast(CompileRun(
- "'use strong';"
- "({});"));
- CHECK(!try_catch.HasCaught());
- }
- obj->DefineOwnProperty(env.local(), v8_str("foo"), v8_num(1), v8::None)
- .FromJust();
- obj->DefineOwnProperty(env.local(), v8_str("2"), v8_num(1), v8::None)
- .FromJust();
- CHECK(obj->HasOwnProperty(env.local(), v8_str("foo")).FromJust());
- CHECK(obj->HasOwnProperty(env.local(), v8_str("2")).FromJust());
- CHECK(!obj->Delete(env.local(), v8_str("foo")).FromJust());
- CHECK(!obj->Delete(env.local(), 2).FromJust());
-}
-
-
static void ExtrasBindingTestRuntimeFunction(
const v8::FunctionCallbackInfo<v8::Value>& args) {
CHECK_EQ(
« no previous file with comments | « src/runtime/runtime-literals.cc ('k') | test/message/strong-object-freeze-prop.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698