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

Unified Diff: test/js-perf-test/PropertyQueries/property-queries.js

Issue 2860403002: [js-perf-tests] Fix PropertyQueries test for fast-delete (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/js-perf-test/PropertyQueries/property-queries.js
diff --git a/test/js-perf-test/PropertyQueries/property-queries.js b/test/js-perf-test/PropertyQueries/property-queries.js
index f763d262d4ebec8a97072070d078b5f24163156a..06146c752a42087c4a21b9c57eda66f0511c13a7 100644
--- a/test/js-perf-test/PropertyQueries/property-queries.js
+++ b/test/js-perf-test/PropertyQueries/property-queries.js
@@ -71,7 +71,10 @@ function IntArray(size) {
// Switch object's properties and elements to dictionary mode.
function MakeDictionaryMode(obj) {
obj.foo = 0;
+ obj.bar = 0;
+ // Delete the second-to-last property first to force normalization.
delete obj.foo;
+ delete obj.bar;
obj[1e9] = 0;
return obj;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698