Divy Srivastava
524bccdf6a
fix(napi): return node globalThis from napi_get_global ( #17613 )
...
Fixes https://github.com/denoland/deno/issues/17587
2023-02-01 15:41:04 +01:00
Bartek Iwańczuk
9cd271a9a5
fix(napi): guard threadsafe function counters behind a mutex ( #17552 )
2023-01-28 16:30:05 +01:00
Divy Srivastava
c3e0b12c72
fix(napi): handle return value from initializer ( #17502 )
...
Fixes https://github.com/denoland/deno/issues/17349
2023-01-23 18:59:46 +05:30
Bartek Iwańczuk
f1b275ed6b
fix(napi): don't hold on to borrow during iteration ( #17461 )
...
I mistakenly held on to a RefCell's borrow for the whole time of
iteration, but since these counters can be refed/unrefed from any
thread that is a mistake.
2023-01-18 02:14:53 +01:00
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
225114166a
fix(napi): allow cleanup hook to remove itself ( #17402 )
...
This commit fixes "cleanup hooks" in NAPI integration in two ways:
- don't hold to RefCell's borrow while iterating over hooks
- allow a hook to remove itself when being called
2023-01-13 22:17:25 +01:00
Divy Srivastava
dd2829be0c
fix(napi): Implement napi_threadsafe_function
ref and unref ( #17304 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-12 13:47:55 +01:00
Bartek Iwańczuk
14ada3dce2
fix(napi): support for env cleanup hooks ( #17324 )
...
This commit adds support for "napi_add_env_cleanup_hook" and
"napi_remove_env_cleanup_hook" function for Node-API.
2023-01-10 19:15:10 +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
Leo Kettmeir
c41d4ff90e
feat(core): allow specifying name and dependencies of an Extension ( #17301 )
2023-01-08 23:48:46 +01:00
Yiyu Lin
896dd56b7a
refactor(cli,core,ext,rt): remove some unnecessary clone
or malloc
( #17274 )
2023-01-05 14:29:50 -05: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
Divy Srivastava
ac4b5de656
feat(napi): improve napi coverage ( #16198 )
2022-12-13 19:56:53 +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