fix napi class snippets bug

Signed-off-by: chen-zhongwei050 <chenzhongwei050@chinasoftinc.com>
This commit is contained in:
chen-zhongwei050 2024-11-07 19:07:53 +08:00
parent 471b023a48
commit 13f7e4f0c3

View File

@ -50,6 +50,7 @@
" // Retrieve obj (the C++ object) previously wrapped in jsThis (the ArkTS object), and perform subsequent operations.",
" napi_unwrap(env, jsThis, reinterpret_cast<void**>(&obj));",
" // Todo: you can use \"napistringutf8out\" command that return string utf8 value to js.",
" return stringOut;",
"}",
"napi_value HelloWorld::SetValue(napi_env env, napi_callback_info info)",
"{",