5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -3455,10 +3455,9 @@ defined in [Section 7.2.14][] of the ECMAScript Language Specification.
3455
3455
### napi_detach_arraybuffer
3456
3456
<!-- YAML
3457
3457
added: v12.16.0
3458
+ napiVersion: 7
3458
3459
-->
3459
3460
3460
- > Stability: 1 - Experimental
3461
-
3462
3461
```c
3463
3462
napi_status napi_detach_arraybuffer(napi_env env,
3464
3463
napi_value arraybuffer)
@@ -3481,10 +3480,9 @@ defined in [Section 24.1.1.3][] of the ECMAScript Language Specification.
3481
3480
### napi_is_detached_arraybuffer
3482
3481
<!-- YAML
3483
3482
added: v12.16.0
3483
+ napiVersion: 7
3484
3484
-->
3485
3485
3486
- > Stability: 1 - Experimental
3487
-
3488
3486
```c
3489
3487
napi_status napi_is_detached_arraybuffer(napi_env env,
3490
3488
napi_value arraybuffer,
Original file line number Diff line number Diff line change 17
17
// functions available in a new version of N-API that is not yet ported in all
18
18
// LTS versions, they can set NAPI_VERSION knowing that they have specifically
19
19
// depended on that version.
20
- #define NAPI_VERSION 6
20
+ #define NAPI_VERSION 7
21
21
#endif
22
22
#endif
23
23
@@ -529,14 +529,17 @@ NAPI_EXTERN napi_status napi_get_instance_data(napi_env env,
529
529
void * * data );
530
530
#endif // NAPI_VERSION >= 6
531
531
532
- #ifdef NAPI_EXPERIMENTAL
532
+ #if NAPI_VERSION >= 7
533
533
// ArrayBuffer detaching
534
534
NAPI_EXTERN napi_status napi_detach_arraybuffer (napi_env env ,
535
535
napi_value arraybuffer );
536
536
537
537
NAPI_EXTERN napi_status napi_is_detached_arraybuffer (napi_env env ,
538
538
napi_value value ,
539
539
bool * result );
540
+ #endif // NAPI_VERSION >= 7
541
+
542
+ #ifdef NAPI_EXPERIMENTAL
540
543
// Type tagging
541
544
NAPI_EXTERN napi_status napi_type_tag_object (napi_env env ,
542
545
napi_value value ,
Original file line number Diff line number Diff line change 93
93
94
94
// The NAPI_VERSION provided by this version of the runtime. This is the version
95
95
// which the Node binary being built supports.
96
- #define NAPI_VERSION 6
96
+ #define NAPI_VERSION 7
97
97
98
98
#endif // SRC_NODE_VERSION_H_
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ assert.notStrictEqual(test_general.testGetPrototype(baseObject),
33
33
test_general . testGetPrototype ( extendedObject ) ) ;
34
34
35
35
// Test version management functions
36
- assert . strictEqual ( test_general . testGetVersion ( ) , 6 ) ;
36
+ assert . strictEqual ( test_general . testGetVersion ( ) , 7 ) ;
37
37
38
38
[
39
39
123 ,
Original file line number Diff line number Diff line change 1
- #define NAPI_EXPERIMENTAL
2
1
#include <js_native_api.h>
3
2
#include <string.h>
4
3
#include "../common.h"
0 commit comments