diff options
Diffstat (limited to 'deps/v8/test/mjsunit/shared-memory/shared-struct-without-map-space.js')
-rw-r--r-- | deps/v8/test/mjsunit/shared-memory/shared-struct-without-map-space.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/shared-memory/shared-struct-without-map-space.js b/deps/v8/test/mjsunit/shared-memory/shared-struct-without-map-space.js new file mode 100644 index 0000000000..4706629b97 --- /dev/null +++ b/deps/v8/test/mjsunit/shared-memory/shared-struct-without-map-space.js @@ -0,0 +1,12 @@ +// 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: --no-use-map-space --harmony-struct + +"use strict"; + +// Test ensures that deserialization works without map space and +// that we can allocate maps in the shared heap. + +let SomeStruct = new SharedStructType(['field1', 'field2']); |