title: eval is not a function
body: <p>It might interest somebody and save few hours, a nasty bundling problem, eval is from one file and function is from second file.</p>
  
  <pre><code>eval('console.log(0)')
  (function(x){console.log(x)})(1)
  </code></pre>
  
  <p>will result with: Uncaught TypeError: eval(...) is not a function</p>
  
  <p>and this is the fix</p>
  
  <pre><code>eval('console.log(0)');
  (function(x){console.log(x)})(1)
  </code></pre>
  
  <p>missing semicolon, I've read few times that semicolon in JS optional most of the time.</p>
  
  <p>any comments why eval is not a function in this context?</p>