mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
22 lines
556 B
JavaScript
22 lines
556 B
JavaScript
// Copyright 2023 the V8 project authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-arraybuffer-length
|
|
description: >
|
|
Indices of TypedArrays backed by resizable buffers are enumerable with
|
|
for-in
|
|
includes: [resizableArrayBufferUtils.js]
|
|
features: [resizable-arraybuffer]
|
|
---*/
|
|
|
|
let rab = CreateResizableArrayBuffer(100, 200);
|
|
for (let ctor of ctors) {
|
|
const ta = new ctor(rab, 0, 3);
|
|
let keys = '';
|
|
for (const key in ta) {
|
|
keys += key;
|
|
}
|
|
assert.sameValue(keys, '012');
|
|
}
|