bf998bdf47
The previous fix was using the wrong getter for accessing the length. It also threw an error when the created TA was length-tracking but in bounds. Bug: v8:11111,chromium:1399799 Change-Id: I5a94b1b49b2e30cf33999be7ff0ee8e4f5323849 Fixed: chromium:1399799 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4090984 Reviewed-by: Shu-yu Guo <syg@chromium.org> Commit-Queue: Marja Hölttä <marja@chromium.org> Cr-Commit-Position: refs/heads/main@{#84771}
21 lines
497 B
JavaScript
21 lines
497 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
|
|
|
|
"use strict";
|
|
|
|
const rab = new ArrayBuffer(1744, {"maxByteLength": 4000});
|
|
let callSlice = true;
|
|
class MyFloat64Array extends Float64Array {
|
|
constructor() {
|
|
super(rab);
|
|
if (callSlice) {
|
|
callSlice = false; // Prevent recursion
|
|
super.slice();
|
|
}
|
|
}
|
|
};
|
|
new MyFloat64Array();
|