Ben Grant
e3b5927e73
Work on NAPI leak tests
2024-11-01 19:09:49 -07:00
Ben Grant
7a20f515f7
Fix NAPI property tests
2024-11-01 18:30:47 -07:00
190n
08116e43f4
Fix napi property methods on non-objects ( #14935 )
2024-11-01 18:30:45 -07:00
Ben Grant
b6dfd89928
Remove reference to nonexistent test
2024-11-01 15:42:46 -07:00
Ben Grant
936ae5a796
Fix and test edge cases calling NAPI constructors
2024-11-01 15:32:18 -07:00
Ben Grant
fe18b871f8
Move napi_wrap lifetime test to existing test suite
2024-11-01 15:32:16 -07:00
Kai Tamkun
a1c4240940
Integrate #12660 into bun/fix-node-napi-tests
2024-11-01 11:58:48 -07:00
Ben Grant
5176ab58bc
Test napi_set_property and napi_set_named_property
2024-10-31 13:21:26 -07:00
Ben Grant
a669ff1243
Build napi-app in debug mode
2024-10-31 12:19:55 -07:00
Ben Grant
91a52311de
Merge branch 'main' into ben/fix-node-napi-tests
2024-10-31 12:16:56 -07:00
190n
9647291d73
Implement NAPI type tagging ( #14915 )
2024-10-30 19:57:48 -07:00
Ben Grant
8b19e08882
Rename wrap-lifetime-test.mjs
2024-10-30 12:24:32 -07:00
Ben Grant
3587391920
Add napi_type_tag_object and napi_check_type_tag
2024-10-25 18:43:19 -07:00
Ben Grant
43d7cfcb23
Fix NAPI tests compiling on Windows
2024-10-25 18:42:53 -07:00
Ben Grant
3ba398f482
Stress test napi_wrap and napi_external
2024-10-25 16:56:54 -07:00
Ben Grant
d29e72f89c
Add missing #include
2024-10-25 10:08:44 -07:00
Ben Grant
e04f461508
Work on leak testing for NAPI wrap/ref/external
2024-10-24 18:33:55 -07:00
Ben Grant
bdcca417ef
Refine NAPI tests
2024-10-24 18:05:51 -07:00
Ben Grant
b753e4b38b
Fix providing class's data pointer to method without data pointer
2024-10-23 18:46:20 -07:00
Ben Grant
a7bc53b92c
Split NAPI tests out of the huge C++ file
2024-10-23 18:29:48 -07:00
Ben Grant
b2080c88f4
JS exceptions instead of assertions in napi tests
2024-10-23 15:02:26 -07:00
Ben Grant
d612cfff12
Misc CallFrame fixes
2024-10-22 19:07:29 -07:00
Ben Grant
020c32bc73
clangd config for NAPI tests
2024-10-22 18:59:35 -07:00
Ben Grant
5bae294c14
More (self-contained for now) napi tests
2024-10-18 18:43:22 -07:00
190n
50e9be0dc7
Fix napi_value<=>integer conversions and napi_create_empty_array ( #14479 )
2024-10-10 23:50:39 -07:00
190n
50bb5fa1f6
Fix napi_throw_*/napi_create_*_error ( #14446 )
2024-10-10 02:35:38 -07:00
190n
b0b38b42ba
Return undefined from napi_get_property when property does not exist ( #14366 )
2024-10-07 18:05:31 -07:00
Ben Grant
23dc0fed71
Test that threadsafe function finalizers run on the next tick
2024-10-04 15:24:01 -07:00
Ben Grant
2583f33a33
Make NAPI tests allocate in the finalizer
2024-10-04 11:08:37 -07:00
190n
0a54c24bd3
Allow throwing exceptions from napi_async_complete_callback ( #14302 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-10-02 22:35:45 -07:00
Jarred Sumner
94a656bc4f
Support bundling .node files in ESM & CJS when targeting Node.js ( #14294 )
...
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-10-02 20:15:29 -07:00
190n
dd12715071
Propagate exceptions in napi_run_script ( #14222 )
2024-09-27 22:27:57 -07:00
190n
08a77267da
Keep event loop alive when refConcurrently has been called ( #14068 )
2024-09-20 14:57:55 -07:00
Jarred Sumner
c48997050d
Avoid creating a Napi handle scope within a finalizer ( #13870 )
...
Co-authored-by: Ben Grant <ben@bun.sh >
2024-09-11 20:05:44 -07:00
190n
f6841a06c5
Make NAPI garbage collection tests faster ( #13898 )
2024-09-11 16:59:03 -07:00
190n
282b92d6e1
Fix issues with NAPI tests ( #13831 )
...
Co-authored-by: 190n <190n@users.noreply.github.com >
2024-09-09 17:08:40 -07:00
190n
084734db64
Implement napi_handle_scope and napi_escapable_handle_scope ( #13756 )
2024-09-07 00:55:19 -07:00
Jarred Sumner
cd6785771e
run prettier and add back format action ( #13722 )
2024-09-03 21:32:52 -07:00
190n
dc2929d4e1
Start implementing internal V8 APIs ( #12821 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-08-14 17:51:12 -07:00
Dylan Conway
ac4523e903
fix(napi): unref threadsafe functions on finalize ( #12788 )
2024-07-24 18:57:01 -07:00
Ashcon Partovi
d105b048b1
Use Buildkite for CI ( #11477 )
2024-06-27 14:56:07 -07:00
Jarred Sumner
c082ec5c9d
Fixes #1288 ( #11991 )
2024-06-20 16:14:14 -07:00
Ciro Spaciari
3a5077c622
fix(napi) napi_call_threadsafe_function should work with null data and napi_create_threadsafe_function should keep the process alive by default ( #11952 )
2024-06-18 13:38:04 -07:00
Jarred Sumner
0248e3c2b7
Add NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT=1 ( #9742 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-30 14:03:52 -07:00
Dylan Conway
c7289b2cd6
fix(windows): fix a few more tests ( #9550 )
...
* fix napi tests
* only windows, update passing tests
* remove closing remainder
* fix child_process-node.test.js
* might fail in ci
* oops
* fix dns tests
* remove comment
* sometimes it is slow
* update test
* maybe fix timeout error
* one more try
* off by one, valid npm package name
* update test
* fix hot tests
* revert
* remove close
2024-03-25 13:34:08 -07:00
dave caruso
072f2f15ea
ci: run windows tests and also run them concurrently ( #7758 )
2024-01-12 17:02:20 -08:00
Jarred Sumner
a93f467a74
NAPI fixes ( #7765 )
...
* napi fixes
* Make bcrypt work
* Always return this
* Fixes #7685
* [autofix.ci] apply automated fixes
* Update napi.cpp
* Make it clearer what this is doing
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-21 15:55:58 -08:00
Jarred Sumner
fe5e19da59
Implement v8::Isolate::TryGetCurrent, v8::Isolate::GetCurrent, v8::Isolate::GetCurrentContext, stub node::AddEnvironmentCleanupHook & node:: RemoveEnvironmentCleanupHook ( #7665 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-12-14 13:46:38 -08:00
Jarred Sumner
6a7b1a3208
Clean up lifetime handling for napi_create_string_utf16 ( #7311 )
...
* Clean up lifetime handling for `napi_create_string_utf16` and `napi_create_string_latin1`
* Fix `napi_create_arraybuffer`
* Update globals.d.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-26 15:59:03 -08:00
Jarred Sumner
6c200c089c
Tweak napi PR ( #7177 )
...
* Fix assertion failure
* Fix the test
* Fix assertion failure
* Update bun.lockb
* Add node-gyp
* Update CMakeLists.txt
* Update napi.test.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-17 17:00:44 -08:00