Env
Contents
- Allocation
- Conversion
- Primitives
- Singletons
- Containers
- Buffers
- External handles
- Functions and references
- Promises and async
- Errors
- Version info
The N-API environment plus the per-call arena allocator.
Env is recognized by type. As the first parameter of a top-level function, the second parameter of an init, or the second parameter of a class method, it does not consume a JS argument.
Allocation
See Memory model.
Conversion
Primitives
Singletons
Containers
Buffers
External handles
Pair with Val.getExternalData(env) to unwrap.
Functions and references
Promises and async
Errors
After throw*, return any error from your function to abort. See Errors.