IReadOnlyDictionary is treated as array-like #2206
SebastianStehle
started this conversation in
General
Replies: 1 comment
-
|
Yes, I think the checks are missing for read only dictionary. It should probably follow same check paths which are using field: private static readonly Type _genericDictionaryType = typeof(IDictionary<,>);A PR with test coverage would be most welcome! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am not sure yet, if this is a bug. I have a custom IReadOnlyDictionary that gets treated as array like. Therefore it will also be serialized as array when I use toJSON.
I think the culprit is here:
jint/Jint/Runtime/Interop/TypeDescriptor.cs
Line 166 in 768b442
Is there something I can do to prevent that?
Beta Was this translation helpful? Give feedback.
All reactions