ClojureScript

(js-debugger) should generate nil-returning expression

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: 1.7.145
  • Fix Version/s: 1.7.228
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code
  • Approval:
    Vetted

Description

(defn f [x] (js-debugger)) currently generates a function like this:

f = (function user$f(x){ return debugger;; });

return debugger; is an invalid javascript-expression (at least in Chrome). Instead (js-debugger) should expand into what is now equivalent to:

(do (js-debugger) nil)

so the previous example is compiled into:

f = (function user$f(x){ debugger;; return nil; });

Activity

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: