Imports and eval

Juan Ignacio Dopazo jdopazo at yahoo-inc.com
Mon Jun 2 09:33:11 PDT 2014


Import/export declarations are designed to be static. However, eval() seems to break this invariant:

eval('import ' + foo + ' from ' + bar);

Is this valid ES6 code? Should it be valid?

Juan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140602/0687656a/attachment.html>


More information about the es-discuss mailing list