<!-- 
RSS generated by JIRA (4.4#649-r158309) at Sun May 19 09:29:58 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/si/jira.issueviews:issue-xml/CLJS-471/CLJS-471.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Clojure JIRA</title>
    <link>http://dev.clojure.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>4.4</version>
        <build-number>649</build-number>
        <build-date>25-07-2011</build-date>
    </build-info>

<item>
            <title>[CLJS-471] Empty regexp causes Closure Compiler error</title>
                <link>http://dev.clojure.org/jira/browse/CLJS-471</link>
                <project id="10040" key="CLJS">ClojureScript</project>
                        <description>&lt;p&gt;An empty regexp of the form &lt;tt&gt;#&quot;&quot;&lt;/tt&gt; compiles to &lt;tt&gt;//&lt;/tt&gt;, which is not an empty regexp but a comment, causing the code following the supposed regexp on the affected line to be commented out. This tends to cause compiler errors when Closure Compiler tries to parse it.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;#&quot;&quot;&lt;/tt&gt; should instead produce either &lt;tt&gt;/(?:&amp;#41;/&lt;/tt&gt; or &lt;tt&gt;new RegExp(&quot;&quot;)&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="16008">CLJS-471</key>
            <summary>Empty regexp causes Closure Compiler error</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="5" iconUrl="http://dev.clojure.org/jira/images/icons/priority_trivial.gif">Trivial</priority>
                    <status id="1" iconUrl="http://dev.clojure.org/jira/images/icons/status_open.gif">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="michalmarczyk">Micha&#322; Marczyk</assignee>
                                <reporter username="bodil">Bodil Stokke</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Feb 2013 15:33:55 -0600</created>
                <updated>Thu, 25 Apr 2013 05:57:34 -0500</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="30891" author="michalmarczyk" created="Sat, 6 Apr 2013 18:50:20 -0500"  >&lt;p&gt;Commit message:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;CLJS-471: prevent empty regexps from causing compiler errors

This patch chooses to emit

  (new RegExp(&quot;&quot;))

rather than

  /(?:)/

so that (pr-str #&quot;&quot;) returns

  &quot;#\&quot;\&quot;&quot;

rather than

  &quot;#\&quot;(?:)\&quot;&quot;

A test for the above is included.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="30994" author="dnolen" created="Wed, 24 Apr 2013 21:52:23 -0500"  >&lt;p&gt;I tried applying this in master, the included test fails.&lt;/p&gt;</comment>
                    <comment id="30996" author="michalmarczyk" created="Thu, 25 Apr 2013 05:57:34 -0500"  >&lt;p&gt;Thanks for letting me know. I&apos;ve checked the value of &lt;tt&gt;new RegExp(&quot;&quot;).source&lt;/tt&gt; in a Node.js REPL (0.10.3) and it turns out to be &lt;tt&gt;&apos;(?&lt;img class=&quot;emoticon&quot; src=&quot;http://dev.clojure.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&apos;&lt;/tt&gt;. So, how important is it that we return &lt;tt&gt;&quot;#\&quot;\&quot;&quot;&lt;/tt&gt; rather than &lt;tt&gt;&quot;#\&quot;(?&lt;img class=&quot;emoticon&quot; src=&quot;http://dev.clojure.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;\&quot;&quot;&lt;/tt&gt; anyway? I&apos;m thinking maybe not that much, seeing how regexp support in JS is different to that on the JVM in more fundamental ways. I&apos;ll just assume this is correct and attach a new patch accepting both representations soon. Of course if there&apos;s a better way to do it, I&apos;ll be happy to implement it.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11945" name="0001-CLJS-471-prevent-empty-regexps-from-causing-compiler.patch" size="1900" author="michalmarczyk" created="Sat, 6 Apr 2013 18:50:20 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>