mirror of
https://github.com/nodejs/node.git
synced 2025-08-17 22:58:52 +02:00

Reason for revert: broke test-snapshot-reproducible.js in
dynamically linked builds in the CI.
This reverts commit 4c730aed7f
.
PR-URL: https://github.com/nodejs/node/pull/53582
Refs: https://github.com/nodejs/node/issues/53579
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Stewart X Addison <sxa@redhat.com>
17 lines
632 B
JavaScript
17 lines
632 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";
|
|
|
|
(function FlagMismatch() {
|
|
// Length tracking TA, buffer not resizable.
|
|
const data1 = new Uint8Array([255, 15, 66, 4, 3, 5, 7, 11, 86, 66, 1, 2, 1]);
|
|
assertThrows(() => { d8.serializer.deserialize(data1.buffer); });
|
|
|
|
// RAB backed TA, buffer not resizable.
|
|
const data2 = new Uint8Array([255, 15, 66, 4, 3, 5, 7, 11, 86, 66, 1, 2, 2]);
|
|
assertThrows(() => { d8.serializer.deserialize(data2.buffer); });
|
|
})();
|