/third_party/node/benchmark/napi/function_args/ |
D | napi_binding.c | 13 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/ |
D | myobject.cc | 27 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/ |
D | 0003-add-js-api.patch | 1792 + 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/ |
D | myobject.cc | 35 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/ |
D | test_linked_binding.cc | 94 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/ |
D | napi_binding.c | 9 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/ |
D | n-api.md | 57 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/ |
D | node_api.cc | 257 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 …]
|
D | js_native_api_v8.h | 159 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; \
|
D | js_native_api_types.h | 74 napi_ok, enumerator
|
/third_party/node/test/node-api/test_threadsafe_function/ |
D | binding.c | 32 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/ |
D | test_cannot_run_js.c | 14 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/ |
D | test_string.c | 25 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/ |
D | common.h | 45 if ((the_call) != napi_ok) { \ 62 if (status != napi_ok) { \
|
/third_party/node/test/node-api/test_async_cleanup_hook/ |
D | binding.c | 28 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/ |
D | test_reference_by_node_api_version.c | 24 return napi_ok; in GetArgValue() 52 return napi_ok; in GetRef()
|
/third_party/node/test/node-api/test_instance_data/ |
D | test_instance_data.c | 116 if (status != napi_ok) { in ThreadsafeFunctionTestThread() 124 if (status != napi_ok) { in ThreadsafeFunctionTestThread()
|
/third_party/node/test/node-api/test_env_teardown_gc/ |
D | binding.c | 16 status == napi_ok || status == napi_pending_exception, in MyObject_fini()
|
/third_party/node/benchmark/napi/string/ |
D | binding.c | 8 assert(status == napi_ok && #call " failed"); \
|
/third_party/node/benchmark/napi/ref/ |
D | addon.c | 8 if (status != napi_ok) { \
|
/third_party/node/benchmark/napi/type-tag/ |
D | binding.c | 8 assert(status == napi_ok && #call " failed"); \
|
/third_party/node/test/node-api/test_uv_loop/ |
D | test_uv_loop.cc | 17 napi_get_uv_event_loop(env, &loop) == napi_ok, in SetImmediate()
|
/third_party/node/test/js-native-api/test_general/ |
D | test_general.c | 77 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/ |
D | binding.c | 8 if (status != napi_ok) { \
|
/third_party/node/test/node-api/test_callback_scope/ |
D | binding.c | 41 if (function_call_result != napi_ok) { in RunInCallbackScope()
|