Divy Srivastava
b96bbc32c8
fix(napi): improve napi_is_detached_arraybuffer ( #17498 )
2023-01-23 14:22:18 +05:30
Divy Srivastava
2e1df62380
fix(napi): improve napi_detach_arraybuffer ( #17499 )
2023-01-23 14:21:55 +05:30
Divy Srivastava
c3e3694b9d
fix(napi): correctly handle name in napi_create_function ( #17489 )
...
Fixes https://github.com/denoland/deno/issues/17472
2023-01-22 15:04:18 +05:30
Bartek Iwańczuk
df8bfa26be
fix(napi): functions related to errors ( #17370 )
...
This commits fixes various NAPI functions related to creation and
throwing of errors.
2023-01-15 09:06:55 +05:30
Bartek Iwańczuk
b4ce48c80a
fix(napi): correct arguments for napi_get_typedarray_info ( #17306 )
2023-01-14 13:00:48 +00:00
Bartek Iwańczuk
291dcc31f7
fix(napi): date and unwrap handling ( #17369 )
2023-01-13 12:53:45 +01:00
Bartek Iwańczuk
0329bc69da
fix(napi): handle static properties in classes ( #17320 )
...
Adds support for static properties when using "napi_define_class".
2023-01-10 15:35:46 +01:00
David Sherret
10e4b2e140
chore: update copyright year to 2023 ( #17247 )
...
Yearly tradition of creating extra noise in git.
2023-01-02 21:00:42 +00:00
linbingquan
f46df3e359
chore: update to Rust 1.66.0 ( #17078 )
2022-12-17 23:20:15 +01:00
Divy Srivastava
ac4b5de656
feat(napi): improve napi coverage ( #16198 )
2022-12-13 19:56:53 +05:30
Bartek Iwańczuk
918518b506
napi: respect --quiet flag in unimplemented warnings ( #16935 )
2022-12-05 14:25:25 +01:00
Bartek Iwańczuk
381932ce1e
chore: upgrade rusty_v8 to 0.58.0 ( #16879 )
2022-11-30 22:20:18 +00:00
Bartek Iwańczuk
b88b7c9244
chore: upgrade rusty_v8 to 0.55.0 ( #16604 )
...
<!--
Before submitting a PR, please read http://deno.land/manual/contributing
1. Give the PR a descriptive title.
Examples of good title:
- fix(std/http): Fix race condition in server
- docs(console): Update docstrings
- feat(doc): Handle nested reexports
Examples of bad title:
- fix #7123
- update docs
- fix bugs
2. Ensure there is a related issue and it is referenced in the PR text.
3. Ensure there are tests that cover the changes.
4. Ensure `cargo test` passes.
5. Ensure `./tools/format.js` passes without changing files.
6. Ensure `./tools/lint.js` passes.
-->
2022-11-12 05:37:37 +01:00
Marcos Casagrande
207dd8d111
fix(napi): fix is_detached_arraybuffer ( #16478 )
2022-10-30 13:13:46 -04:00
Divy Srivastava
e136bd86b3
perf(napi): optimize primitive napi functions ( #16163 )
...
This optimization applies on `napi_get_undefined`, `napi_get_null` &
`napi_get_boolean`.
```
# main
benchmark time (avg) (min … max) p75 p99 p995
---------------------------------------------------------- -----------------------------
warmup 482.55 ps/iter (462.5 ps … 15.67 ns) 475 ps 525 ps 829.1 ps
napi_get_undefined 25.07 ns/iter (24.03 ns … 36.87 ns) 25.37 ns 27.09 ns 34.85 ns
```
```
# This patch
benchmark time (avg) (min … max) p75 p99 p995
---------------------------------------------------------- -----------------------------
warmup 484.78 ps/iter (462.5 ps … 14.4 ns) 475 ps 554.1 ps 583.3 ps
napi_get_undefined 15.52 ns/iter (15.35 ns … 22.14 ns) 15.41 ns 17.18 ns 20.02 ns
```
2022-10-07 16:24:01 +05:30
Divy Srivastava
5a1ea586b4
refactor(napi): simplify napi_value
interface ( #16170 )
2022-10-07 09:21:08 +05:30
Divy Srivastava
0b016a7fb8
feat(npm): implement Node API ( #13633 )
...
This PR implements the NAPI for loading native modules into Deno.
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: DjDeveloper <43033058+DjDeveloperr@users.noreply.github.com>
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2022-10-05 19:36:44 +05:30