ClojureScript

Using 'null' as a var name leads to illegal code

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

Description

(ns pkg)

(def null "abc")

compiles to the following javascript

pkg.null = "abc";

which is not legal. Other reserved javascript keywords may have the same issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: