ClojureScript

ClojureScript reader throws TypeError when map keys start with colon then number

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Declined
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

ClojureScript:cljs.user> (cljs.reader/read-string "{:9k true}")
"Error evaluating:" (cljs.reader/read-string "{:9k true}") :as "cljs.reader.read_string.call(null,\"{:9k true}\");\n"
#<TypeError: Cannot read property 'length' of null>
TypeError: Cannot read property 'length' of null
    at http://localhost:8080/javascripts/out/cljs/reader.js:530:38
    at http://localhost:8080/javascripts/out/cljs/reader.js:534:2
    at read_keyword (http://localhost:8080/javascripts/out/cljs/reader.js:547:2)
    at read_delimited_list (http://localhost:8080/javascripts/out/cljs/reader.js:373:32)
    at read_map (http://localhost:8080/javascripts/out/cljs/reader.js:418:47)
    at read (http://localhost:8080/javascripts/out/cljs/reader.js:675:115)
    at read_string (http://localhost:8080/javascripts/out/cljs/reader.js:707:25)
    at eval at <anonymous> (http://localhost:8080/javascripts/out/clojure/browser/repl.js:21:158)
    at eval at <anonymous> (http://localhost:8080/javascripts/out/clojure/browser/repl.js:21:158)
    at http://localhost:8080/javascripts/out/clojure/browser/repl.js:21:153
nil

Activity

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: