Feb 8, 2014 at 11:07 AM
Edited Feb 8, 2014 at 11:08 AM
I'm getting an error on the AddHostObject call.
That's correct. That method can't be used with simple values that are automatically converted to native script language datatypes, such as strings and numbers.
I also tried replacing the engine.AddHostObject() with engine.Script reference
should therefore be able to handle 64-bit integer arguments.
This is where JScript appears to have a bug; instead of converting 64-bit integers to floating point, it imports them directly and treats them as "unrecognized data". In your example,
For now all we can recommend is that you avoid this situation. Convert 64-bit integers to
before passing them to JScript. We'll investigate this issue and consider making this conversion automatic in a future release.
Thanks for bringing this to our attention!