77b5390b37
Bug: v8:10274 Change-Id: Ica2b8873c84001ab8c3877747329eb3c78d3ea5a Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2114723 Commit-Queue: Toon Verwaest <verwaest@chromium.org> Reviewed-by: Toon Verwaest <verwaest@chromium.org> Cr-Commit-Position: refs/heads/master@{#66886}
10 lines
364 B
JavaScript
10 lines
364 B
JavaScript
// 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.
|
|
|
|
var { 9007199254740991n: it } = { 9007199254740991n: 1 };
|
|
assertEquals(it, 1);
|
|
|
|
var { 999999999999999999n: it } = { 999999999999999999n: 1 }; // greater than max safe integer
|
|
assertEquals(it, 1);
|