Pavel (Pasha) Lechenko
How to restrict global scope in dynamically created function?
I want to dynamically create a function using Function() constructor. How can I restrict access to global scope?
For example, this code:
should return something like
Uncaught ReferenceError: Deno is not defined
instead of providing full access to Deno's properties and methods.
Is it even possible?16 replies