To see the error, run the following:
which will generate a Js error like "SyntaxError: expected expression, got keyword 'debugger'"
The compiled Js output will contain something like:
but debugger is a statement, not an expression that can be assigned.
Core.async 0.4.474 and Clojurescript 1.10.238, tested in latest Chrome and Firefox.
Given the nature of go blocks, I don't think this should be expected to work, but I will leave that to dnolen.
Comment made by: kingmob
I mentioned it to David originally, and he said if I had tried it, others probably had too, and suggested I file the ticket.
Should cljs.core.async be more aware of Js restricted keywords somehow? (FWIW, I saw another issue where someone was using a var named "new" that works normally but breaks in go: https://dev.clojure.org/jira/browse/ASYNC-176)