From 0329bc69dabbcc4d57ff9d34d695ffd4ddb1de4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 10 Jan 2023 15:35:46 +0100 Subject: fix(napi): handle static properties in classes (#17320) Adds support for static properties when using "napi_define_class". --- test_napi/object_wrap_test.js | 1 + 1 file changed, 1 insertion(+) (limited to 'test_napi/object_wrap_test.js') diff --git a/test_napi/object_wrap_test.js b/test_napi/object_wrap_test.js index 2522a8e6c..ae64821ea 100644 --- a/test_napi/object_wrap_test.js +++ b/test_napi/object_wrap_test.js @@ -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); }); -- cgit v1.2.3