summaryrefslogtreecommitdiff
path: root/test_napi/object_wrap_test.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-01-10 15:35:46 +0100
committerGitHub <noreply@github.com>2023-01-10 15:35:46 +0100
commit0329bc69dabbcc4d57ff9d34d695ffd4ddb1de4f (patch)
treeaa54ee523d47191c4816fe8d70839f8d892e3ba5 /test_napi/object_wrap_test.js
parent636352e0ca1e611c7673f2ab68538e1ddb2dc5b7 (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.js1
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);
});