Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant