lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
martinklepsch 2018-02-02T16:47:27.000736Z

Does lumo have API docs? I’m wondering if it has any built ins for shelling out?

richiardiandrea 2018-02-02T16:51:35.000542Z

@martinklepsch the docs are not out yet, about shelling out you can either use node directly or abio, depending on your needs

martinklepsch 2018-02-02T16:51:50.000073Z

got it thx

richiardiandrea 2018-02-02T16:53:23.000144Z

https://github.com/abiocljs/abio/blob/master/src/abio/shell.cljs

richiardiandrea 2018-02-02T18:17:53.000057Z

I have a question, I am trying to replicate https://github.com/anmonteiro/lumo/issues/28

richiardiandrea 2018-02-02T18:18:09.000453Z

so setting --no-use_strict

richiardiandrea 2018-02-02T18:18:15.000224Z

but in a -i file

richiardiandrea 2018-02-02T18:18:32.000435Z

it does not seem to work

richiardiandrea 2018-02-02T18:20:22.000136Z

in particular I have this in a file:

(enable-console-print!)

;; <https://github.com/anmonteiro/lumo/issues/28>
(def v8 (js/require "v8"))
(.setFlagsFromString v8 "--no-use_strict")

;; Trying out a couple of libs for better spec printing
;; (set! s/*explain-out* expound/printer)
(require '[pinpointer.core :as pinpointer])
(set! s/*explain-out* (partial pinpointer/pinpoint-out
                               {:colorize true
                                :eval lumo.core/eval}))

richiardiandrea 2018-02-02T18:21:04.000322Z

but it fails with the error Unexpected eval or arguments in strict mode

richiardiandrea 2018-02-02T18:21:23.000636Z

with is triggered by pinpointer, but works if I do the same at the REPL

richiardiandrea 2018-02-02T18:23:31.000349Z

relevant issue here: https://github.com/athos/Pinpointer/issues/9