mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
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:
1 parent
b356886269
commit
6cf05e7ddc
1 file changed
-3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user