ni / VireoSDK

Compact runtime for a subset of LabVIEW
Other
49 stars 44 forks source link

Add registerCustomGlobal public api function #660

Closed rajsite closed 4 years ago

rajsite commented 4 years ago

Adds a method to the public API that allows a user of the Vireo public API to change the object that the JavaScriptInvoke feature uses for looking up functions for the JSLI feature.

This is not a feature utilized by ASW but is instead valuable for users that access the vireo api directly. In particular this allows node.js users of WebVIs to have greater control of how JavaScript functions are resolved for the JSLI document and hacks can be avoided that unnecessarily expose objects in the global scope.

For ASW / normal WebVI users there should be no change in behavior of vireo. ASW VireoTest build.