30 lines
799 B
HTML
30 lines
799 B
HTML
<html>
|
|
<head>
|
|
<script src="../js/scittle.js" type="application/javascript"></script>
|
|
<script crossorigin src="https://unpkg.com/react@17/umd/react.production.min.js"></script>
|
|
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script>
|
|
<script src="../js/scittle.reagent.js" type="application/javascript"></script>
|
|
<script type="application/x-scittle">
|
|
(require '[sci.core :as sci])
|
|
(defn try-load-string [s]
|
|
(try
|
|
(js/scittle.core.eval_string s)
|
|
(catch ^:sci/error js/Error e
|
|
(run! println (-> (sci/stacktrace e) (sci/format-stacktrace))))))
|
|
|
|
(try-load-string "
|
|
(defn f []
|
|
(subs nil 42))
|
|
|
|
(defn g []
|
|
(f))
|
|
|
|
(g)
|
|
")
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
</body>
|
|
</html>
|