v8/test/mjsunit/regress/regress-crbug-1307310.js
Marja Hölttä 8c94b7ec7b [rab/gsab] Fix the rab gsab TA initial map
Bug: v8:11111,chromium:1307310
Change-Id: I41175d759e71d2016880eae1cd42e420ee9cc229
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3540262
Reviewed-by: Shu-yu Guo <syg@chromium.org>
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79646}
2022-03-29 07:31:41 +00:00

20 lines
472 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
const gsab = new SharedArrayBuffer(4, {
maxByteLength: 8
});
const ta = new Int8Array(gsab);
function defineUndefined(ta) {
Object.defineProperty(ta, undefined, {
get: function () {}
});
}
defineUndefined(ta);
assertThrows(() => { defineUndefined(ta); });