Closed teledemic closed 7 months ago
Looks like a CLR->V8 marshalling issue, but I am afraid I do not know how to fix it.
OK thx! I was having a similar thing happen with returned dictionary objects too. For anyone looking, my workaround ended up as just serializing the entire return object to a JSON string (with the newtonsoft json library) and passing that string back as the function return, then deserializing in node with JSON.parse. Clunky but works.
It looks like a multidimensional array from .NET gets flattened into a single dimension when returning to JS:
Value returned to javascript:
[ 1, 1, 1, 2, 2, 2, 3, 3, 3 ]
Expected value:
Thanks for the library, everything else is working great!