mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(napi): handle static properties in classes (#17320)
Adds support for static properties when using "napi_define_class".
This commit is contained in:
parent
636352e0ca
commit
0329bc69da
4 changed files with 90 additions and 3 deletions
|
@ -14,4 +14,5 @@ Deno.test("napi object wrap new", function () {
|
|||
obj.increment();
|
||||
obj.set_value(10);
|
||||
assertEquals(obj.get_value(), 10);
|
||||
assertEquals(objectWrap.NapiObject.factory(), 64);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue