We're updating the issue view to help you get more done. 

(js-debugger) should generate nil-returning expression

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;
});

Environment

None

Status

Assignee

David Nolen

Reporter

Michiel Borkent

Labels

None

Approval

Vetted

Patch

Code

Fix versions

Affects versions

1.7.145

Priority

Minor