<div dir="ltr">On Mon, Jun 9, 2014 at 11:12 AM, Gijs Kruitbosch <span dir="ltr"><<a href="mailto:gijskruitbosch@gmail.com" target="_blank">gijskruitbosch@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Considering the amount of spew this generates on startup, I would
      actually suggest that spending time on writing an ASI->source
      transformation tool, if we don't have one already, for SM's
      version of JS, would take less time, and that should allow us to
      do these kinds of transformations relatively painlessly. Is
      dehydra still alive?<span class=""><font color="#888888"><br>
      <br><br></font></span></div></div></blockquote><div><br></div><div>Dehydra analyzed C++, not JS. (The analyses were written in JS.)<br><br></div><div>There are many JS parsers available, some of which understand SpiderMonkey's extensions. The built-in Reflect.parse actually uses SpiderMonkey's own parser, although it has some other limitations that make it not ideal for code generation (patches welcome!).<br>
<br></div><div>I think this project would end up spending more of its time getting formatting right, preserving comments, and so on, and the actual rewrites would be trivial.<br></div></div><br></div></div>