Fork me on GitHub
#sci
<
2022-05-05
>
pmooser06:05:38

@borkdude Back when I started using sci, I used eval-string with options like:

:classes {'js js/window :allow :all}
So that I could call things like js/console.log ... is there a similar argument that can be used for eval-form ?

pmooser07:05:47

I see from the github page, that with eval-string you can do this to allow interop with anything:

{:classes {'js goog/global :allow :all}}

pmooser07:05:56

Ah, it looks like maybe I can provide this to the ctx when I create it.

pmooser07:05:18

Ok, that works!

👍 1