From 494c60253d8c71fdb257d4a2b4fc39275b8a20b6 Mon Sep 17 00:00:00 2001 From: Cheng Date: Sat, 13 Jul 2024 08:46:18 +0900 Subject: [PATCH] Expose GetWrappersCount --- src/instance_data.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/instance_data.h b/src/instance_data.h index cad16aa..25bf280 100644 --- a/src/instance_data.h +++ b/src/instance_data.h @@ -107,6 +107,10 @@ class InstanceData { return true; } + size_t GetWrappersCount() const { + return wrappers_.size(); + } + private: explicit InstanceData(napi_env env) : env_(env),