<< Back to previous view

[CLJS-512] Tagged literals should yield Java types to macros Created: 30/May/13  Updated: 11/Dec/13  Resolved: 11/Dec/13

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

Type: Defect Priority: Major
Reporter: Brandon Bloom Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: None

user=> '#inst "2000-01-01"
#inst "2000-01-01T00:00:00.000-00:00"

ClojureScript:cljs.user> '#inst "2000-01-01"
(js/Date. 946684800000)

CLJS should return a JS Date object, not a list.

This means that there needs to be a pluggable system for emitting custom types as JS code. Right now you can work around this via (defmethod cljs.analyzer/emit-constant ...)

Full discussion in IRC here: http://clojure-log.n01se.net/date/2013-05-30.html#20:10

Comment by David Nolen [ 11/Dec/13 10:49 AM ]

was fixed by https://github.com/clojure/clojurescript/commit/3424908269d427fc5ad054f7f4e8a69d27cffddc

Generated at Wed Jan 17 14:40:44 CST 2018 using JIRA 4.4#649-r158309.