diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-01-10 15:35:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 15:35:46 +0100 |
commit | 0329bc69dabbcc4d57ff9d34d695ffd4ddb1de4f (patch) | |
tree | aa54ee523d47191c4816fe8d70839f8d892e3ba5 /test_napi/object_wrap_test.js | |
parent | 636352e0ca1e611c7673f2ab68538e1ddb2dc5b7 (diff) |
fix(napi): handle static properties in classes (#17320)
Adds support for static properties when using "napi_define_class".
Diffstat (limited to 'test_napi/object_wrap_test.js')
-rw-r--r-- | test_napi/object_wrap_test.js | 1 |
1 files changed, 1 insertions, 0 deletions
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); }); |