<< Back to previous view

[CLJS-625] apply constructor generates invalid JS Created: 18/Oct/13  Updated: 03/May/15  Resolved: 03/May/15

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

Type: Defect Priority: Trivial
Reporter: George Fraser Assignee: Unassigned
Resolution: Declined Votes: 0
Labels: None



(apply js/String. "foo")

generates the javscript:


which does not parse. This seems like a bad failure mode.

Comment by Antonin Hildebrand [ 03/May/15 4:42 AM ]

A note to myself: a possible javascript solution is outlined here:

Comment by David Nolen [ 03/May/15 7:13 AM ]

This isn't valid Clojure(Script). Whether we should produce a warning of some kind is a separate issue.

Generated at Sat Jan 20 03:38:43 CST 2018 using JIRA 4.4#649-r158309.