node/test/js-native-api
Denys Otrishko a1cbbd1da6
n-api: implement napi_is_detached_arraybuffer
This implements ArrayBuffer#IsDetachedBuffer operation as per ECMAScript
specification Section 24.1.1.2 https://tc39.es/ecma262/#sec-isdetachedbuffer

Closes: https://github.com/nodejs/node/issues/29955

PR-URL: https://github.com/nodejs/node/pull/30613
Fixes: https://github.com/nodejs/node/issues/29955
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2019-11-28 15:15:36 +01:00
..
2_function_arguments test: partition N-API tests 2018-12-04 13:58:17 -08:00
3_callbacks test: partition N-API tests 2018-12-04 13:58:17 -08:00
4_object_factory test: partition N-API tests 2018-12-04 13:58:17 -08:00
5_function_factory test: partition N-API tests 2018-12-04 13:58:17 -08:00
6_object_wrap n-api: define ECMAScript-compliant accessors on napi_define_class 2019-06-17 12:07:08 +02:00
7_factory_wrap test: partition N-API tests 2018-12-04 13:58:17 -08:00
8_passing_wrapped doc: remove "it is important to" phrasing 2019-10-26 16:33:24 -07:00
test_array benchmark,doc,lib,test: capitalize comments 2019-02-28 18:31:10 +01:00
test_bigint test: partition N-API tests 2018-12-04 13:58:17 -08:00
test_constructor n-api: refactor a previous commit 2019-07-26 15:09:04 -07:00
test_conversions test: partition N-API tests 2018-12-04 13:58:17 -08:00
test_dataview test: partition N-API tests 2018-12-04 13:58:17 -08:00
test_date n-api: mark version 5 N-APIs as stable 2019-09-05 09:16:54 -07:00
test_error test: refactoring test_error testing 2019-08-01 13:12:53 -07:00
test_exception test: partition N-API tests 2018-12-04 13:58:17 -08:00
test_function n-api: refactoring napi_create_function testing 2019-07-31 23:19:41 -07:00
test_general src: render N-API weak callbacks as cleanup hooks 2019-10-13 00:07:43 -07:00
test_handle_scope benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
test_instance_data n-api: add APIs for per-instance state management 2019-07-25 16:53:07 -07:00
test_new_target test: partition N-API tests 2018-12-04 13:58:17 -08:00
test_number benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
test_object n-api: refactor a previous commit 2019-07-26 15:09:04 -07:00
test_promise test: partition N-API tests 2018-12-04 13:58:17 -08:00
test_properties n-api: define ECMAScript-compliant accessors on napi_define_properties 2019-06-17 12:06:06 +02:00
test_reference test: check `napi_get_reference_value()` during finalization 2019-04-30 18:59:34 -07:00
test_string benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
test_symbol benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
test_typedarray n-api: implement napi_is_detached_arraybuffer 2019-11-28 15:15:36 +01:00
.gitignore test: partition N-API tests 2018-12-04 13:58:17 -08:00
common.c n-api: refactor a previous commit 2019-07-26 15:09:04 -07:00
common.h n-api: refactor a previous commit 2019-07-26 15:09:04 -07:00
entry_point.c test: partition N-API tests 2018-12-04 13:58:17 -08:00
testcfg.py test: partition N-API tests 2018-12-04 13:58:17 -08:00