| // Copyright 2017 the V8 project authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| // Flags: --allow-natives-syntax |
| // Ensure that mutation of the Object.keys result doesn't affect the |
| // enumeration cache for fast-mode objects. |
| assertEquals(2, k.length); |
| assertEquals(2, k.length); |
| // Ensure that the copy-on-write keys are handled properly, even in |
| // the presence of Symbols. |
| assertEquals(0, k.length); |
| assertEquals(0, k.length); |