Module Loader Comments

Kevin Smith khs4473 at
Thu Mar 14 14:14:41 PDT 2013

> The more important reason to handle `eval` in a loader is so that if
> you're enforcing some invariant on code executed in a specific loader,
> you don't want the code to be able to escape that invariant via
> `eval`.

This makes sense now.  The loader has the opportunity to analyze and
transform external code, so it should also have the same ability with
respect to dynamic code.  Maybe this rationale could be captured on the

So it's really more of a "transform" hook than a "translate" hook.  Would
naming it "transform" would make the intention more obvious?

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list