The entire winx binary relies on the monolithic winx.cpp. While there are advantages for development & testing, it's probably time to start pulling this apart and creating a proper wrapper on top of V8's startup.
Probably want to support the following:
Create Function/Object templates for registration
Create way to load polyfill(s) scripts (embedded or passed in)
Separate CLI parsing logic and setting up globals
Investigate if we need to actually use globals or is there something better
Separate script execution
These few items should clean things up a bit, especially for better JNI integration (right now it's just a hook around the monolithic start up function).
The entire winx binary relies on the monolithic winx.cpp. While there are advantages for development & testing, it's probably time to start pulling this apart and creating a proper wrapper on top of V8's startup.
Probably want to support the following:
Function
/Object
templates for registrationThese few items should clean things up a bit, especially for better JNI integration (right now it's just a hook around the monolithic start up function).