Lines Matching refs:status

48         napi_status  status;  in coerce_to_string()  local
50 status = napi_coerce_to_string(env_, val, &res); in coerce_to_string()
51 if (status != napi_ok) { in coerce_to_string()
63 napi_status status; in create_buffer() local
65 status = napi_create_buffer(env_, size, data, &res); in create_buffer()
66 if (status != napi_ok) { in create_buffer()
78 napi_status status; in create_function() local
80 status = napi_create_function(env_, name, len, cb, data, &res); in create_function()
81 if (status != napi_ok) { in create_function()
100 napi_status status; in create_object() local
102 status = napi_create_object(env_, &res); in create_object()
103 if (status != napi_ok) { in create_object()
115 napi_status status; member
117 status = napi_create_reference(env_, val, ref_count, &res);
118 if (status != napi_ok) {
130 napi_status status; in create_string_latin1() local
132 status = napi_create_string_latin1(env_, str, len, &res); in create_string_latin1()
133 if (status != napi_ok) { in create_string_latin1()
157 napi_status status; in define_class() local
159 status = napi_define_class(env_, name, NAPI_AUTO_LENGTH, ctor, nullptr, in define_class()
161 if (status != napi_ok) { in define_class()
180 napi_status status; in get_array_length() local
182 status = napi_get_array_length(env_, val, &res); in get_array_length()
183 if (status != napi_ok) { in get_array_length()
195 napi_status status; in get_buffer_info() local
197 status = napi_get_buffer_info(env_, val, &res, &size); in get_buffer_info()
198 if (status != napi_ok) { in get_buffer_info()
210 napi_status status; in get_cb_info() local
212 status = napi_get_cb_info(env_, info, &argc, argv, &res, nullptr); in get_cb_info()
213 if (status != napi_ok) { in get_cb_info()
225 napi_status status; in get_cb_info() local
227 status = napi_get_cb_info(env_, info, nullptr, nullptr, &res, nullptr); in get_cb_info()
228 if (status != napi_ok) { in get_cb_info()
257 napi_status status; in get_element() local
259 status = napi_get_element(env_, obj, i, &res); in get_element()
260 if (status != napi_ok) { in get_element()
272 napi_status status; in get_named_property() local
274 status = napi_get_named_property(env_, obj, name, &res); in get_named_property()
275 if (status != napi_ok) { in get_named_property()
287 napi_status status; in get_new_target() local
289 status = napi_get_new_target(env_, info, &res); in get_new_target()
290 if (status != napi_ok) { in get_new_target()
302 napi_status status; in get_property() local
304 status = napi_get_property(env_, val, key, &res); in get_property()
305 if (status != napi_ok) { in get_property()
317 napi_status status; in get_property_names() local
319 status = napi_get_property_names(env_, val, &res); in get_property_names()
320 if (status != napi_ok) { in get_property_names()
332 napi_status status; in get_reference_value() local
334 status = napi_get_reference_value(env_, ref, &res); in get_reference_value()
335 if (status != napi_ok) { in get_reference_value()
354 napi_status status; in get_value_bool() local
356 status = napi_get_value_bool(env_, obj, &res); in get_value_bool()
357 if (status != napi_ok) { in get_value_bool()
369 napi_status status; in get_value_string_latin1() local
371 status = napi_get_value_string_latin1(env_, val, buf, bufsize, &res); in get_value_string_latin1()
372 if (status != napi_ok) { in get_value_string_latin1()
384 napi_status status; in get_value_uint32() local
386 status = napi_get_value_uint32(env_, obj, &res); in get_value_uint32()
387 if (status != napi_ok) { in get_value_uint32()
399 napi_status status; in get_value_string_utf8() local
401 status = napi_get_value_string_utf8(env_, val, buf, bufsize, &res); in get_value_string_utf8()
402 if (status != napi_ok) { in get_value_string_utf8()
414 napi_status status; in is_array() local
416 status = napi_is_array(env_, val, &res); in is_array()
417 if (status != napi_ok) { in is_array()
429 napi_status status; in is_buffer() local
431 status = napi_is_buffer(env_, val, &res); in is_buffer()
432 if (status != napi_ok) { in is_buffer()
445 napi_status status; in make_callback() local
447 status = napi_make_callback(env_, ctx, val, func, argc, argv, &res); in make_callback()
448 if (status != napi_ok) { in make_callback()
449 if (status != napi_pending_exception) { in make_callback()
453 status = napi_get_and_clear_last_exception(env_, &ex); in make_callback()
454 if (status != napi_ok) { in make_callback()
459 status = napi_fatal_exception(env_, ex); in make_callback()
460 if (status != napi_ok) { in make_callback()
508 napi_status status; in new_instance() local
510 status = napi_new_instance(env_, ctor, 0, NULL, &res); in new_instance()
511 if (status != napi_ok) { in new_instance()
523 napi_status status; in new_instance() local
525 status = napi_new_instance(env_, ctor, 1, &param, &res); in new_instance()
526 if (status != napi_ok) { in new_instance()
538 napi_status status; in new_instance() local
541 status = napi_new_instance(env_, ctor, 2, param, &res); in new_instance()
542 if (status != napi_ok) { in new_instance()
553 napi_status status; in set_element() local
555 status = napi_set_element(env_, obj, i, val); in set_element()
556 if (status != napi_ok) { in set_element()
565 napi_status status; in set_named_property() local
567 status = napi_set_named_property(env_, obj, name, val); in set_named_property()
568 if (status != napi_ok) { in set_named_property()
607 napi_status status; in create() local
609 status = napi_create_int32(env_, val, &ptr); in create()
610 if (status != napi_ok) { in create()
622 napi_status status; in create() local
624 status = napi_create_uint32(env_, val, &ptr); in create()
625 if (status != napi_ok) { in create()
637 napi_status status; in create() local
639 status = napi_create_int64(env_, val, &ptr); in create()
640 if (status != napi_ok) { in create()
662 napi_status status; in remove_wrap() local
664 status = napi_remove_wrap(env_, val, &res); in remove_wrap()
665 if (status != napi_ok) { in remove_wrap()
690 napi_status status; in type_of() local
693 status = napi_typeof(env_, val, &res); in type_of()
694 if (status != napi_ok) { in type_of()
706 napi_status status; in unwrap() local
708 status = napi_unwrap(env_, val, &res); in unwrap()
709 if (status != napi_ok) { in unwrap()
721 napi_status status; member
723 status = napi_wrap(env_, val, obj, fin_cb, hint, &res);
724 if (status != napi_ok) {
752 napi_status status; in nxt_handle_scope() local
754 status = napi_open_handle_scope(env, &scope_); in nxt_handle_scope()
755 if (status != napi_ok) { in nxt_handle_scope()
762 napi_status status; in ~nxt_handle_scope() local
764 status = napi_close_handle_scope(env(), scope_); in ~nxt_handle_scope()
765 if (status != napi_ok) { in ~nxt_handle_scope()
780 napi_status status; in nxt_async_context() local
784 status = napi_async_init(env, NULL, name_val, &context_); in nxt_async_context()
785 if (status != napi_ok) { in nxt_async_context()
796 napi_status status; in ~nxt_async_context() local
798 status = napi_async_destroy(env(), context_); in ~nxt_async_context()
799 if (status != napi_ok) { in ~nxt_async_context()
814 napi_status status; in nxt_callback_scope() local
818 status = napi_open_callback_scope(env(), resource, ctx, &scope_); in nxt_callback_scope()
819 if (status != napi_ok) { in nxt_callback_scope()
826 napi_status status; in ~nxt_callback_scope() local
828 status = napi_close_callback_scope(env(), scope_); in ~nxt_callback_scope()
829 if (status != napi_ok) { in ~nxt_callback_scope()