diff --git a/deps.edn b/deps.edn index d7ce159..fc2cc02 100644 --- a/deps.edn +++ b/deps.edn @@ -15,7 +15,7 @@ org.babashka/sci #_{:local/root "../babashka/sci"} {:git/url "https://github.com/babashka/sci" - :git/sha "1bb7ed8ff421ad5db40813741783b1d4cbac1351"} + :git/sha "908c92dfff24037ef95e1f4dbc6d38fc1f9d96b0"} #_{:mvn/version "0.14.55"} org.clojure/tools.cli {:mvn/version "1.0.214"} com.cognitect/transit-cljs {:mvn/version "0.8.280"} diff --git a/src/nbb/core.cljs b/src/nbb/core.cljs index 83e2924..10caa06 100644 --- a/src/nbb/core.cljs +++ b/src/nbb/core.cljs @@ -17,14 +17,11 @@ [nbb.impl.sci :as sci-cfg] [sci.core :as sci] [sci.ctx-store :as ctx] - [sci.impl.unrestrict :refer [*unrestricted*]] [sci.impl.vars :as vars] [sci.lang] [shadow.esm :as esm]) (:require-macros [nbb.macros :as macros])) -(set! *unrestricted* true) - (def await-counter 0) (defn thenable? [p] @@ -704,9 +701,8 @@ :classes {'js universe :allow :all 'goog.object (clj->js goog-object-ns) 'ExceptionInfo ExceptionInfo - 'Math js/Math}})) - -(sci/enable-unrestricted-access!) + 'Math js/Math} + :unrestricted true})) (def old-require (sci/eval-form (ctx/get-ctx) 'require))