diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-02-10 21:46:56 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 21:46:56 +0530 |
commit | 39f131cd762e62e6750b61a5edd6ed0e83995a77 (patch) | |
tree | 80331418dddbfd58c222bc55597d763075b07c6e /test_napi/properties_test.js | |
parent | 46817a0e3dc98197cd3e7af0b33efa3533f44ea0 (diff) |
fix(cli/napi): correct name handling in napi property descriptor (#17716)
Fixes https://github.com/denoland/deno/issues/17712
Diffstat (limited to 'test_napi/properties_test.js')
-rw-r--r-- | test_napi/properties_test.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test_napi/properties_test.js b/test_napi/properties_test.js index 36ede1033..b5f0c0794 100644 --- a/test_napi/properties_test.js +++ b/test_napi/properties_test.js @@ -15,4 +15,10 @@ Deno.test("napi properties", () => { assertEquals(properties.test_simple_property, { nice: 69, }); + + assertEquals(properties.key_v8_string, 1); + const symbols = Object.getOwnPropertySymbols(properties); + assertEquals(symbols.length, 1); + assertEquals(symbols[0].description, "key_v8_symbol"); + assertEquals(properties[symbols[0]], 1); }); |