We're building a platform that will execute user code (in their own isolated VMs - this isn't a security question). Ideally we can build some understanding of the code structure they have uploaded.
How can we reflect over the files/modules to see their exports, classes and functions?
Standard JavaScript 'reflection' requires an instance of a type to get started. Even reflect-metadata seems to need some prior knowledge of the types in the file. Any thoughts on how we can do this?
Aucun commentaire:
Enregistrer un commentaire