<< Back to previous view

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

Status: Closed
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    

(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.


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 Jan 19 15:35:43 CST 2018 using JIRA 4.4#649-r158309.