Skip to content

passing args to exercises #3

@timoxley

Description

@timoxley

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:

  1. 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.
  2. Use vm to sandbox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions