(CLJS) Cannot use (js-debugger) in go block

Description

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.

Environment

Core.async 0.4.474 and Clojurescript 1.10.238, tested in latest Chrome and Firefox.

Activity

Show:
Alex Miller
April 16, 2018, 4:25 PM

Given the nature of go blocks, I don't think this should be expected to work, but I will leave that to dnolen.

import
April 16, 2018, 6:18 PM

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)

Assignee

Unassigned

Reporter

import

Labels

Approval

None

Patch

None

Priority

Minor
Configure