title: ES6 Modules, stop execution of code
body: <p>It sounds like an odd question: <strong>How can I leave the execution context from an ES6 module?</strong></p>
  
  <p>See the following example:
  Module1 requires some features in the browser to be present (say some new stuff not every Browser implements currentl).</p>
  
  <p>You want to do a check in the module, if the required feature is available and if not, you want to stop the execution.</p>
  
  <p>When writing that with an immediate function call, you can just call <code>return</code> and the following code is never executed.</p>
  
  <p>How to do that in an ES6 module? Do I have to wrap the whole code into an <code>if</code> block?</p>