<!-- 
RSS generated by JIRA (4.4#649-r158309) at Sat May 25 02:43:46 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-177/CLJS-177.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-177] js-&gt;clj should convert JavaScript null to Clojure nil</title>
                <link>http://dev.clojure.org/jira/browse/CLJS-177</link>
                <project id="10040" key="CLJS">ClojureScript</project>
                        <description>&lt;p&gt;Prior to commit ebf45f5 &lt;span class=&quot;error&quot;&gt;&amp;#91;A&amp;#93;&lt;/span&gt;, js-&amp;gt;clj converted JavaScript null to Clojure nil without any errors.&lt;/p&gt;

&lt;p&gt;As of commit ebf45f5 (related to &lt;a href=&quot;http://dev.clojure.org/jira/browse/CLJS-175&quot; title=&quot;js-&amp;gt;clj loops infinitely on some native objects&quot;&gt;&lt;del&gt;CLJS-175&lt;/del&gt;&lt;/a&gt;), js-&amp;gt;clj throws a TypeError when it encounters JavaScript null:&lt;/p&gt;

&lt;p&gt;    TypeError: Cannot read property &apos;constructor&apos; of null&lt;br/&gt;
    b===c}function q(b,c){return gb.call(e,b,c)}function pb(b){return b.construct&lt;br/&gt;
                                                                    ^&lt;br/&gt;
    TypeError: Cannot read property &apos;constructor&apos; of null&lt;/p&gt;

&lt;p&gt;The attached patch &lt;span class=&quot;error&quot;&gt;&amp;#91;B&amp;#93;&lt;/span&gt; adds a test to demonstrate the issue and provides a suggested fix.&lt;/p&gt;

&lt;p&gt;Note: &lt;a href=&quot;http://dev.clojure.org/jira/browse/CLJS-175&quot; title=&quot;js-&amp;gt;clj loops infinitely on some native objects&quot;&gt;&lt;del&gt;CLJS-175&lt;/del&gt;&lt;/a&gt; intentionally limited the types of objects it would attempt to convert to Clojure code. For example, &lt;a href=&quot;http://dev.clojure.org/jira/browse/CLJS-175&quot; title=&quot;js-&amp;gt;clj loops infinitely on some native objects&quot;&gt;&lt;del&gt;CLJS-175&lt;/del&gt;&lt;/a&gt; notes that conversion &quot;doesn&apos;t make sense for something like Date or RegExp.&quot; I agree for those types of objects, but &quot;null&quot; seems straightforward enough that it should be converted.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;A&amp;#93;&lt;/span&gt; &lt;a href=&quot;https://github.com/clojure/clojurescript/commit/ebf45f5&quot;&gt;https://github.com/clojure/clojurescript/commit/ebf45f5&lt;/a&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;B&amp;#93;&lt;/span&gt; Also viewable here: &lt;a href=&quot;https://github.com/jasonrudolph/clojurescript/compare/master...js-null-to-clj-nil&quot;&gt;https://github.com/jasonrudolph/clojurescript/compare/master...js-null-to-clj-nil&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="15325">CLJS-177</key>
            <summary>js-&gt;clj should convert JavaScript null to Clojure nil</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="4" iconUrl="http://dev.clojure.org/jira/images/icons/priority_minor.gif">Minor</priority>
                    <status id="5" iconUrl="http://dev.clojure.org/jira/images/icons/status_resolved.gif">Resolved</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="-1">Unassigned</assignee>
                                <reporter username="jasonrudolph">Jason Rudolph</reporter>
                        <labels>
                        <label>patch,</label>
                    </labels>
                <created>Tue, 10 Apr 2012 18:43:51 -0500</created>
                <updated>Tue, 10 Apr 2012 19:38:02 -0500</updated>
                    <resolved>Tue, 10 Apr 2012 19:38:01 -0500</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="28099" author="dnolen" created="Tue, 10 Apr 2012 19:38:02 -0500"  >&lt;p&gt;Fixed, &lt;a href=&quot;http://github.com/clojure/clojurescript/commit/9319579acfc4fc9dbcf6e79f611afad707f97579&quot;&gt;http://github.com/clojure/clojurescript/commit/9319579acfc4fc9dbcf6e79f611afad707f97579&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11034" name="js-null-to-clj-nil.diff" size="2959" author="jasonrudolph" created="Tue, 10 Apr 2012 18:43:51 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Patch</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10002">Code and Test</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                        </customfields>
    </item>
</channel>
</rss>