<< Back to previous view

[CLJS-410] support ^:expose annotation Created: 28/Oct/12  Updated: 19/Nov/13  Resolved: 19/Nov/13

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

Type: Enhancement Priority: Minor
Reporter: David Nolen Assignee: Unassigned
Resolution: Declined Votes: 0
Labels: None

Attachments: Text File CLJS-410.patch    

 Description   
(def ^:export m 1)
(defn foo [g]
  (g m))

Because of constant propagation GClosure may replace m in foo with 1. It may be better to for :export to implicitly :expose but we need to check the output.

http://developers.google.com/closure/compiler/docs/js-for-compiler



 Comments   
Comment by Olle Martensson [ 22/Jul/13 5:33 AM ]

def annotated with ^:export is now implicitly treated as an exposed property by the closure compiler.

The goog.exportSymbol part for def seemed to be redundant and thus removed.

Comment by David Nolen [ 19/Nov/13 9:20 PM ]

There are workaround for this.

Generated at Fri Nov 28 20:42:02 CST 2014 using JIRA 4.4#649-r158309.