From c72befdbea8beb3983e8d59e683e47af3408f476 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Tue, 14 Jul 2026 00:19:52 +0200 Subject: [PATCH] Migrate unrestricted --- deps.edn | 2 +- src/nbb/core.cljs | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) 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))