deps: v8: fix potential segfault in profiler
This change fixes a potential segfault in the sampling heap profiler. This landed as part of a larger change upstream (https://github.com/v8/v8/commit/ec952aaa68b12e8448c123b5252efa3afa440ceb). This is the minimal backport that avoids the segfault.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
deps: v8
CI: https://ci.nodejs.org/job/node-test-pull-request/10165/ V8-CI: https://ci.nodejs.org/job/node-test-commit-v8-linux/918/