deps: cherry pick 7166503 from upstream v8
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
deps
Description of change
Backport of bugfix from upstream V8
cc @nodejs/v8