0

I have an issue where certain clients report bugs from code called from js.

One they I want to check is if this maybe is because of 32 vs 64 bit engine. How can I tell which was used? Is that something I can ask clearscript, or can I access that in js?

How is decided which engine is used, Windows bit width?

gjvdkamp
  • 9,929
  • 3
  • 38
  • 46
  • 1
    The version of V8 used depends on the device architecture--All that is needed is to check the OS and CPU architecture (ARM, x86, x64, etc...) to see which version of V8 is used. This has to be done on the C# end, however, unless you give the JS environment access to such information. – Mooshua Apr 22 '22 at 18:49
  • Are you sure it can't be caused by being hosted in a 32 bit process maybe? Are there any 32bit computers anymore? – gjvdkamp Apr 22 '22 at 18:54

1 Answers1

1

RuntimeInformation.ProcessArchitecture is used to determine the version of V8 in use. Additionally, IsOSPlatform is used to determine the OS-specific version of V8 that should be used. Here is a list of all the options which ClearScript will select from.

Mooshua
  • 526
  • 2
  • 16