Too much lexically available to the 'eval' invocation
Closed this issue · 1 comments
Gozala commented
Too much lexically available to the 'eval' invocation. It's not fun finding out that the reason things aren't working is that I forgot to define a variable but my CommonJS loader did define it...
Gozala commented
If I got it correctly problem is that modules gain access to the variables used by teleport itself. If that's a case I guess I can set them all to undefined in the lexical scope in which modules are evaled.
P.S.: You should probably in addition consider using 'use strict'; in which case exceptions will be thrown if you'll forget to define variables.