v8/test/mjsunit/regress/regress-crbug-1327321.js
Jakob Kummerow 86be87df9c [bigint] Fix object literal property keys like 0x0n
Fixed: chromium:1327321
Change-Id: I4868e0127b9dd14a0812cafca1681280534faa46
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3652788
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Auto-Submit: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80661}
2022-05-20 11:21:15 +00:00

11 lines
363 B
JavaScript

// Copyright 2022 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 o of [{0b0n: 0}, {0B0n: 1},
{0o0n: 2}, {0O0n: 3},
{0x0n: 4}, {0X0n: 5},
{0n: 6}]) {
assertEquals("0", Object.getOwnPropertyNames(o)[0]);
}