<< Back to previous view

[CLJS-699] local function calls not optimized Created: 25/Nov/13  Updated: 25/Nov/13  Resolved: 25/Nov/13

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: David Nolen Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: None


 Description   
(defn foo []
  (letfn [(bar [x y] (= x y))]
    (bar :foo :bar)))

generates

hugo_a_go_go.board.foo = function() {
  var a = function(a, c) {
    return cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(a, c)
  };
  return a.cljs$core$IFn$_invoke$arity$2 ? a.cljs$core$IFn$_invoke$arity$2(new cljs.core.Keyword(null, "foo", "foo", 1014005816), new cljs.core.Keyword(null, "bar", "bar", 1014001541)) : a.call(null, new cljs.core.Keyword(null, "foo", "foo", 1014005816), new cljs.core.Keyword(null, "bar", "bar", 1014001541))
};


 Comments   
Comment by David Nolen [ 25/Nov/13 9:09 AM ]

fixed,https://github.com/clojure/clojurescript/commit/eb9a6dc80704154a3c4cf08e96600c5b41a919e1

Generated at Sat Dec 27 20:21:43 CST 2014 using JIRA 4.4#649-r158309.