ClojureScript

js-obj emits invalid js when keys are expressions

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    CLJS 1934

Description

ClojureScript REPL:

> (js-obj (identity "a") 1)
"Error evaluating:" (js-obj (identity "a") 1) :as "{cljs.core.identity.call(null,\"a\"):1}"

But this is ok:

> (def object js-obj)
> (object (identity "a") 1)
#<[object Object]>
> (js->clj *1)
{"a" 1}

Activity

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: