36565f6b5c
Bug: v8:11111,v8:1321980 Change-Id: I4dead5d50a2e1a9c1011c16d13aad2722598e456 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3642297 Reviewed-by: Shu-yu Guo <syg@chromium.org> Commit-Queue: Marja Hölttä <marja@chromium.org> Reviewed-by: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/main@{#80541}
14 lines
417 B
JavaScript
14 lines
417 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.
|
|
|
|
// Flags: --harmony-rab-gsab
|
|
|
|
try {
|
|
// We're only testing these don't crash. It's platform-dependent which of them throw.
|
|
new ArrayBuffer(1, {maxByteLength: 2147483647});
|
|
new ArrayBuffer(1, {maxByteLength: 9007199254740000});
|
|
} catch (e) {
|
|
|
|
}
|