summaryrefslogtreecommitdiff
path: root/deps/v8/test/message/fail/data-view-invalid-length-2.js
blob: 53975f92e6ec2e2e66692d487af8d56ebaaf8f34 (plain)
1
2
3
4
5
6
// 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.
//
let t = new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]);
let t2 = new DataView(t.buffer, 7, -1);