ClojureScript

Self-host: Allow static-fns opt

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: 1.7.145
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Patch:
    Code and Test

Description

Allow clients of cljs.js to specify that static fns be emitted.

This should be surfaced via support for a :static-fns key in the opts compilation options parameter that exists on the various public API functions.

Activity

Hide
Mike Fikes added a comment -

Rough design: Bind cljs.analyzer/*cljs-static-fns* in the appropriate scopes in cljs.js (defaulting to false if :static-fns key not supplied in opts).

Show
Mike Fikes added a comment - Rough design: Bind cljs.analyzer/*cljs-static-fns* in the appropriate scopes in cljs.js (defaulting to false if :static-fns key not supplied in opts).
Hide
Mike Fikes added a comment -

Attached patch with unit tests.

Show
Mike Fikes added a comment - Attached patch with unit tests.
Hide
Mike Fikes added a comment -

Oops. Attached incorrect patch. (Attaching correct CLJS-1478.patch now.)

Show
Mike Fikes added a comment - Oops. Attached incorrect patch. (Attaching correct CLJS-1478.patch now.)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: