Commit 1cda1732 authored by jkummerow's avatar jkummerow Committed by Commit bot

[js-perf-tests] Fix PropertyQueries test for fast-delete

Forcing an object into dictionary mode now requires deleting
a property that's not the last property.

BUG=chromium:718816
NOTRY=true

Review-Url: https://codereview.chromium.org/2860403002
Cr-Commit-Position: refs/heads/master@{#45140}
parent 02a7c020
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment