ecafe04b37
... in object literals. Bug: chromium:997056 Change-Id: Ifc210ff53b751c6ef26f16b73c9ac52426a845fd Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1813021 Reviewed-by: Toon Verwaest <verwaest@chromium.org> Commit-Queue: Igor Sheludko <ishell@chromium.org> Cr-Commit-Position: refs/heads/master@{#63894}
13 lines
313 B
JavaScript
13 lines
313 B
JavaScript
// Copyright 2019 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.
|
|
|
|
for (let i = 0; i < 4; ++i) {
|
|
var obj1 = {
|
|
get [obj1]() {},
|
|
...obj2,
|
|
};
|
|
var obj2 = { [obj1]: 0 };
|
|
print(obj2);
|
|
}
|