mirror of
https://gitee.com/openharmony/napi_generator
synced 2024-11-26 18:20:35 +00:00
fix snippets bug
Signed-off-by: chen-zhongwei050 <chenzhongwei050@chinasoftinc.com>
This commit is contained in:
parent
519e5b1f8c
commit
460f9fc0e4
@ -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;",
|
||||
|
Loading…
Reference in New Issue
Block a user