From 4cf30df026ea0a5ee61b6cc1806e5f4564e9aec7 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Tue, 1 Aug 2023 17:52:12 -0400 Subject: [PATCH] src: add ability to overload fast api functions PR-URL: https://github.com/nodejs/node/pull/48993 Reviewed-By: Joyee Cheung --- src/util.cc | 47 +++++++++++++++++++++++++++++++++++++++++++++++ src/util.h | 12 +++++++++++- 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/src/util.cc b/src/util.cc index 0523a3c8e00847..8140c177490c33 100644 --- a/src/util.cc +++ b/src/util.cc @@ -482,6 +482,53 @@ void SetFastMethodNoSideEffect(Isolate* isolate, that->Set(name_string, t); } +void SetFastMethod(Isolate* isolate, + Local