blob: d1d25488dd64c698b07e7fddf3d20197e44a9ff3 [file] [log] [blame]
// Copyright (C) 2021 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-get-arraybuffer.prototype.maxbytelength
description: Requires this value to have a [[ArrayBufferData]] internal slot
info: |
get ArrayBuffer.prototype.maxByteLength
1. Let O be the this value.
2. Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
[...]
features: [resizable-arraybuffer]
---*/
assert.throws(TypeError, function() {
ArrayBuffer.prototype.maxByteLength;
});