src: fix external reference registration for new CFunction lifetime

Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/65161
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
This commit is contained in:
Joyee Cheung authored and Antoine du Hamel committed 2026-10-04 22:38:30 +02:00
1 parent b356886269
commit 6cf05e7ddc
1 file changed
-3
-3
View File
@@ -43,9 +43,6 @@ class ExternalReferenceRegistry {
// and the corresponding CFunctionInfo.
void Register(const v8::CFunction& c_func) {
RegisterT(&c_func);
// TODO(joyeecheung): remove below when V8 14.8 lands.
RegisterT(c_func.GetAddress());
RegisterT(c_func.GetTypeInfo());
}
// This can be called only once.