Home
last modified time | relevance | path

Searched refs:napi_ok (Results 1 – 25 of 32) sorted by relevance

12

/third_party/node/benchmark/napi/function_args/
Dnapi_binding.c13 assert(status == napi_ok); in CallWithString()
17 assert(status == napi_ok); in CallWithString()
24 assert(status == napi_ok); in CallWithString()
27 assert(status == napi_ok); in CallWithString()
40 assert(status == napi_ok); in CallWithArray()
45 assert(status == napi_ok); in CallWithArray()
51 assert(status == napi_ok); in CallWithArray()
57 assert(status == napi_ok); in CallWithArray()
70 assert(status == napi_ok); in CallWithNumber()
74 assert(status == napi_ok); in CallWithNumber()
[all …]
/third_party/node/test/js-native-api/8_passing_wrapped/
Dmyobject.cc27 if (status != napi_ok) return status; in Init()
30 if (status != napi_ok) return status; in Init()
32 return napi_ok; in Init()
74 if (status != napi_ok) return status; in NewInstance()
77 if (status != napi_ok) return status; in NewInstance()
79 return napi_ok; in NewInstance()
/third_party/mindspore/patches/
D0003-add-js-api.patch1792 + if (status != napi_ok || !exist) {
1797 + if (napi_get_named_property(env, config_obj, type.c_str(), &item) != napi_ok) {
1802 + if (napi_get_value_int32(env, item, &result) != napi_ok) {
1818 + if (status != napi_ok || !exist) {
1823 + if (napi_get_named_property(env, config_obj, type.c_str(), &item) != napi_ok) {
1828 + if (napi_get_value_string_utf8(env, item, buffer, SIZE, &length) != napi_ok) {
1842 + if (status != napi_ok || !exist) {
1847 + if (napi_get_named_property(env, config_obj, type.c_str(), &item) != napi_ok) {
1853 + if (napi_get_value_bigint_uint64(env, item, &result, &lossless) != napi_ok) {
1870 + if (status != napi_ok || !exist) {
[all …]
/third_party/node/test/js-native-api/7_factory_wrap/
Dmyobject.cc35 if (status != napi_ok) return status; in Init()
38 if (status != napi_ok) return status; in Init()
40 return napi_ok; in Init()
79 if (status != napi_ok) return status; in NewInstance()
82 if (status != napi_ok) return status; in NewInstance()
84 return napi_ok; in NewInstance()
/third_party/node/test/cctest/
Dtest_linked_binding.cc94 napi_ok); in InitializeLocalNapiBinding()
96 napi_ok); in InitializeLocalNapiBinding()
97 CHECK_EQ(napi_set_property(env, exports, key, value), napi_ok); in InitializeLocalNapiBinding()
167 napi_ok); in InitializeLocalNapiRefBinding()
173 CHECK_EQ(napi_create_reference(env, key, 1, &ref), napi_ok); in InitializeLocalNapiRefBinding()
174 CHECK_EQ(napi_delete_reference(env, ref), napi_ok); in InitializeLocalNapiRefBinding()
178 CHECK_EQ(napi_get_boolean(env, ref != nullptr, &value), napi_ok); in InitializeLocalNapiRefBinding()
179 CHECK_EQ(napi_set_property(env, exports, key, value), napi_ok); in InitializeLocalNapiRefBinding()
248 napi_ok); in NapiLinkedWithInstanceData()
252 napi_ok); in NapiLinkedWithInstanceData()
[all …]
/third_party/node/benchmark/napi/function_call/
Dnapi_binding.c9 assert(status == napi_ok); in Hello()
22 assert(status == napi_ok); in NAPI_MODULE_INIT()
24 assert(status == napi_ok); in NAPI_MODULE_INIT()
/third_party/node/doc/api/
Dn-api.md57 if (status != napi_ok) {
63 if (status != napi_ok) {
69 if (status != napi_ok) {
404 if (status != napi_ok) { \
511 Returns `napi_ok` if the API succeeded.
537 Returns `napi_ok` if the API succeeded.
561 napi_ok,
975 The return value will be `napi_ok` if the request was successful and
981 In cases where a return value other than `napi_ok` or
1041 Returns `napi_ok` if the API succeeded.
[all …]
/third_party/node/src/
Dnode_api.cc257 return napi_ok; in Push()
270 return napi_ok; in Acquire()
292 return napi_ok; in Release()
313 return napi_ok; in Init()
338 return napi_ok; in Unref()
344 return napi_ok; in Ref()
472 if (status != napi_ok) { in CallJs()
480 if (status != napi_ok && status != napi_pending_exception) { in CallJs()
771 return napi_ok; in napi_add_env_cleanup_hook()
782 return napi_ok; in napi_remove_env_cleanup_hook()
[all …]
Djs_native_api_v8.h159 env->last_error.error_code = napi_ok; in napi_clear_last_error()
163 return napi_ok; in napi_clear_last_error()
260 ? napi_ok \
285 if (status != napi_ok) return status; \
Djs_native_api_types.h74 napi_ok, enumerator
/third_party/node/test/node-api/test_threadsafe_function/
Dbinding.c32 if (napi_release_threadsafe_function(ts_fn, napi_tsfn_release) != napi_ok) { in secondary_thread()
48 if (napi_get_threadsafe_function_context(ts_fn, &hint) != napi_ok) { in data_source_thread()
61 if (napi_acquire_threadsafe_function(ts_fn) != napi_ok) { in data_source_thread()
87 case napi_ok: in data_source_thread()
115 napi_release_threadsafe_function(ts_fn, napi_tsfn_release) != napi_ok) { in data_source_thread()
/third_party/node/test/js-native-api/test_cannot_run_js/
Dtest_cannot_run_js.c14 if (napi_delete_reference(env, *ref) != napi_ok) abort(); in Finalize()
15 if (napi_get_global(env, &global) != napi_ok) abort(); in Finalize()
/third_party/node/test/js-native-api/test_string/
Dtest_string.c25 return napi_ok; in validate_and_retrieve_single_string_arg()
115 if (status != napi_ok) { in create_external_latin1()
119 return napi_ok; in create_external_latin1()
151 if (status != napi_ok) { in create_external_utf16()
156 return napi_ok; in create_external_utf16()
/third_party/node/test/js-native-api/
Dcommon.h45 if ((the_call) != napi_ok) { \
62 if (status != napi_ok) { \
/third_party/node/test/node-api/test_async_cleanup_hook/
Dbinding.c28 assert(status == napi_ok); in AfterCleanupHookTwo()
42 assert(status == napi_ok); in AsyncCleanupHook()
/third_party/node/test/node-api/test_reference_by_node_api_version/
Dtest_reference_by_node_api_version.c24 return napi_ok; in GetArgValue()
52 return napi_ok; in GetRef()
/third_party/node/test/node-api/test_instance_data/
Dtest_instance_data.c116 if (status != napi_ok) { in ThreadsafeFunctionTestThread()
124 if (status != napi_ok) { in ThreadsafeFunctionTestThread()
/third_party/node/test/node-api/test_env_teardown_gc/
Dbinding.c16 status == napi_ok || status == napi_pending_exception, in MyObject_fini()
/third_party/node/benchmark/napi/string/
Dbinding.c8 assert(status == napi_ok && #call " failed"); \
/third_party/node/benchmark/napi/ref/
Daddon.c8 if (status != napi_ok) { \
/third_party/node/benchmark/napi/type-tag/
Dbinding.c8 assert(status == napi_ok && #call " failed"); \
/third_party/node/test/node-api/test_uv_loop/
Dtest_uv_loop.cc17 napi_get_uv_event_loop(env, &loop) == napi_ok, in SetImmediate()
/third_party/node/test/js-native-api/test_general/
Dtest_general.c77 NODE_API_ASSERT(env, status != napi_ok, "Failed to produce error condition"); in createNapiError()
95 bool is_ok = error_info->error_code == napi_ok; in testNapiErrorCleanup()
/third_party/node/benchmark/napi/define_properties/
Dbinding.c8 if (status != napi_ok) { \
/third_party/node/test/node-api/test_callback_scope/
Dbinding.c41 if (function_call_result != napi_ok) { in RunInCallbackScope()

12