Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eval doesn't work on anything with #js literals #490

Open
chriswatrous opened this issue Jul 5, 2019 · 0 comments
Open

eval doesn't work on anything with #js literals #490

chriswatrous opened this issue Jul 5, 2019 · 0 comments

Comments

@chriswatrous
Copy link

@chriswatrous chriswatrous commented Jul 5, 2019

Lumo 1.10.1
ClojureScript 1.10.520
Node.js v11.13.0
 Docs: (doc function-name-here)
       (find-doc "part-of-name-here")
 Source: (source function-name-here)
 Exit: Control+D or :cljs/quit or exit

cljs.user=> (eval #js {})
failed compiling constant: [object Object]; #object[Object] is not a valid ClojureScript constant.
	 (new)
	 Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:2053:72)
	 Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$2 (NO_SOURCE_FILE <embedded>:2052:449)
	 (NO_SOURCE_FILE <embedded>:3620:175)
	 cljs.core.MultiFn.cljs$core$IFn$_invoke$arity$1 (NO_SOURCE_FILE <embedded>:1998:388)
	 Object.cljs.compiler.emit_constant_no_meta (NO_SOURCE_FILE <embedded>:3618:413)
	 Object.cljs.compiler.emit_constant (NO_SOURCE_FILE <embedded>:3619:488)
	 (NO_SOURCE_FILE <embedded>:3689:506)
	 cljs.core.MultiFn.cljs$core$IFn$_invoke$arity$1 (NO_SOURCE_FILE <embedded>:1998:388)
	 Object.cljs.compiler.emit (NO_SOURCE_FILE <embedded>:3590:464)

cljs.user=> (eval #js [])
failed compiling constant: ; #object[Array] is not a valid ClojureScript constant.
	 (new)
	 Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:2053:72)
	 Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$2 (NO_SOURCE_FILE <embedded>:2052:449)
	 (NO_SOURCE_FILE <embedded>:3620:175)
	 cljs.core.MultiFn.cljs$core$IFn$_invoke$arity$1 (NO_SOURCE_FILE <embedded>:1998:388)
	 Object.cljs.compiler.emit_constant_no_meta (NO_SOURCE_FILE <embedded>:3618:413)
	 Object.cljs.compiler.emit_constant (NO_SOURCE_FILE <embedded>:3619:488)
	 (NO_SOURCE_FILE <embedded>:3689:506)
	 cljs.core.MultiFn.cljs$core$IFn$_invoke$arity$1 (NO_SOURCE_FILE <embedded>:1998:388)
	 Object.cljs.compiler.emit (NO_SOURCE_FILE <embedded>:3590:464)

cljs.user=> (eval '(fn [] #js {}))
failed compiling constant: [object Object]; #object[Object] is not a valid ClojureScript constant.
	 (new)
	 Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:2053:72)
	 Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$2 (NO_SOURCE_FILE <embedded>:2052:449)
	 (NO_SOURCE_FILE <embedded>:3620:175)
	 cljs.core.MultiFn.cljs$core$IFn$_invoke$arity$1 (NO_SOURCE_FILE <embedded>:1998:388)
	 Object.cljs.compiler.emit_constant_no_meta (NO_SOURCE_FILE <embedded>:3618:413)
	 Object.cljs.compiler.emit_constant (NO_SOURCE_FILE <embedded>:3619:488)
	 (NO_SOURCE_FILE <embedded>:3689:506)
	 cljs.core.MultiFn.cljs$core$IFn$_invoke$arity$1 (NO_SOURCE_FILE <embedded>:1998:388)
	 Object.cljs.compiler.emit (NO_SOURCE_FILE <embedded>:3590:464)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant