Account for deprecated GetPrototypeV2() and HolderV2() in v8 14.7#6470
Account for deprecated GetPrototypeV2() and HolderV2() in v8 14.7#6470
Conversation
There was a problem hiding this comment.
I'm Bonk, and I've done a quick review of your PR.
Adds #if guards to replace deprecated V8 GetPrototypeV2() and HolderV2() with their renamed counterparts (GetPrototype() and Holder()) for V8 >= 14.7.
- [LOW]
#define HolderV2 Holderinresource.his never#undef'd. Since this is a header file, the macro leaks into every translation unit that includes it. Today this is harmless becauseHolderV2is only used withinresource.hitself, but it's poor hygiene and could cause surprising breakage if the token ever appears elsewhere. Adding an#undefafter the last use site would tighten the scope.
This review was generated by an AI assistant and may contain inaccuracies.
|
I'm Bonk, and I've done a quick review of your PR. The changes add I posted one low-severity finding: the |
|
I think Bonk is being a little overeager here. We will remove this #define soon, so if it works today that's fine. |
Relevant v8 change: https://chromium-review.googlesource.com/c/v8/v8/+/7624359