From 905ba5d5195bc84f0d611815b115f0efe74e3dab Mon Sep 17 00:00:00 2001 From: Chen Steenvoorden Date: Mon, 2 Sep 2024 16:15:50 +0200 Subject: [PATCH] Add client_transparent attribute to String constructors https://github.com/leaningtech/ts2cpp/commit/f9035aef6bd7f4a441b0b775a51ee1e97185c68a --- include/client/new/types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/client/new/types.h b/include/client/new/types.h index a5dea75..3771659 100644 --- a/include/client/new/types.h +++ b/include/client/new/types.h @@ -625,7 +625,9 @@ namespace [[cheerp::genericjs]] client { [[cheerp::interface_name(("fromCharCode"))]] static _Any* _fromCharCode(_Args... data); public: + [[cheerp::client_transparent]] String(const String* x) noexcept; + [[cheerp::client_transparent]] String(const String& x) noexcept; String(long x) noexcept; String(unsigned long x) noexcept;