fix snippets bug

Signed-off-by: chen-zhongwei050 <chenzhongwei050@chinasoftinc.com>
This commit is contained in:
chen-zhongwei050 2024-11-06 14:51:13 +08:00
parent 519e5b1f8c
commit 460f9fc0e4

View File

@ -85,7 +85,7 @@
" CallbackData *callbackData = reinterpret_cast<CallbackData *>(data);",
" // Todo: you can use \"napidoubleout\" command that return double value to js.",
" // Fulfill a ArkTs Promise with a given value.",
" napi_resolve_deferred(env, callbackData->deferred, result);",
" napi_resolve_deferred(env, callbackData->deferred, doubleOut);",
" // Clean up an asynchronous work request and its associated resources.",
" napi_delete_async_work(env, callbackData->asyncWork);",
" delete callbackData;",