nodejs/deps/v8/test/mjsunit/shared-memory/regress-crbug-1394741.js
Michaël Zasso 17a74ddd3d
deps: update V8 to 11.8.172.13
PR-URL: https://github.com/nodejs/node/pull/49639
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-10-10 08:25:41 +02:00

24 lines
626 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: --expose-gc --expose-externalize-string --shared-string-table
(function __f_0() {
let worker = new Worker('', {type: 'string'});
})();
function __f_11() { return "A"; }
function __f_12() { return "\u1234"; }
function __f_13() {
var __v_3 = "";
var __v_5 =
"AAAA" + __f_11();
var __v_6 =
"\u1234\u1234\u1234\u1234" + __f_12();
gc();
externalizeString(__v_6);
}
for (var __v_4 = 0; __v_4 < 10; __v_4++) {
__f_13();
}