As args to exercises are passed on cmdline,
Specifically, I wanted to pass functions I worked around this in functional-javascript-workshop with my own function serialisation and serializing some wrapper code which would re-construct any complex objects (e.g. objects with prototypes setup).
How do you envision such a thing could be integrated into workshopper?
Possible solutions:
- Use something like mixu/snapshot to serialise functions etc + use wrapped exec for constructing complex objects. Downside here is an extra step is required if you want to add any random element to the complex objects, it has to read the random seeds from cmdline then use that to reconstruct the objects.
- Use vm to sandbox
As args to exercises are passed on cmdline,
Specifically, I wanted to pass functions I worked around this in functional-javascript-workshop with my own function serialisation and serializing some wrapper code which would re-construct any complex objects (e.g. objects with prototypes setup).
How do you envision such a thing could be integrated into workshopper?
Possible solutions: