node/deps/v8/test
Joyee Cheung f970087147
deps: V8: backport 93b1a74cbc9b
Original commit message:

    Reland "[api] allow v8::Data as internal field"

    This is a reland of commit 0aa622e12893e9921c01a34ce9507b544e599c4a

    The original patch tried to run a test that calls exit() in the
    fatal error handler in parallel, which would not work. This marked
    the test with TEST() to avoid running it in parallel.

    Original change's description:
    > [api] allow v8::Data as internal field
    >
    > Previously only v8::Value can be stored as internal fields.
    > In some cases, however, it's necessary for the embedder to
    > tie the lifetime of a v8::Data with the lifetime of a
    > JS object, and that v8::Data may not be a v8::Value, as
    > it can be something returned from the V8 API. One way to
    > keep the v8::Data alive may be to use a v8::Persistent<v8::Data>
    > but that can easily lead to leaks.
    >
    > This patch changes v8::Object::GetInternalField() and
    > v8::Object::SetInernalField() to accept v8::Data instead of just
    > v8::Value, so that v8::Data can kept alive by a JS object in
    > a way that the GC can be aware of to address this problem.
    > This is a breaking change for embedders
    > using v8::Object::GetInternalField() as it changes the return
    > type. Since most v8::Value subtypes only support direct casts
    > from v8::Value but not v8::Data, calls like
    >
    > object->GetInternalField(index).As<v8::External>()
    >
    > needs to be updated to cast the value to v8::Value first:
    >
    > object->GetInternalField(index).As<v8::Value>().As<v8::External>()
    >
    > Bug: v8:14120
    > Change-Id: I731c958d1756b9d5ee4a3e78813416cd60d1b7ca
    > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4707972
    > Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
    > Commit-Queue: Joyee Cheung <joyee@igalia.com>
    > Cr-Commit-Position: refs/heads/main@{#89718}

    Bug: v8:14120
    Change-Id: I3e45d09b5c300d5eefc73e380ef21ac2bd61760c
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4834471
    Commit-Queue: Joyee Cheung <joyee@igalia.com>
    Reviewed-by: Camillo Bruni <cbruni@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#89824}

Refs: 93b1a74cbc
PR-URL: https://github.com/nodejs/node/pull/49419
Refs: 0aa622e128
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
2023-09-11 11:29:02 +00:00
..
benchmarks deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
bigint deps: update V8 to 10.7.193.13 2022-10-11 07:24:33 +02:00
cctest deps: V8: backport 93b1a74cbc9b 2023-09-11 11:29:02 +00:00
common deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
debugger deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
debugging deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
fuzzer deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
fuzzilli deps: update V8 to 10.7.193.13 2022-10-11 07:24:33 +02:00
inspector deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
intl deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
js-perf-test deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
memory deps: update V8 to 9.2.230.21 2021-07-20 15:24:51 +02:00
message deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
mjsunit deps: V8: cherry-pick 9f4b7699f68e 2023-07-20 19:50:21 +00:00
mkgrokdump deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
mozilla deps: update V8 to 10.7.193.13 2022-10-11 07:24:33 +02:00
test262 deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
torque deps: update V8 to 10.1.124.6 2022-04-12 22:08:39 +02:00
unittests deps: V8: backport 93b1a74cbc9b 2023-09-11 11:29:02 +00:00
wasm-api-tests deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
wasm-js deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
wasm-spec-tests deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
webkit deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
BUILD.gn deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00
OWNERS deps: update V8 to 11.3.244.4 2023-03-31 14:15:23 +00:00