We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64be690 commit 02b7eadCopy full SHA for 02b7ead
src/main/clojure/cljs/core.cljc
@@ -2257,7 +2257,11 @@
2257
temp-value-exprs will be evaluated and each resulting value will
2258
replace in parallel the root value of its var. After the body is
2259
executed, the root values of all the vars will be set back to their
2260
- old values. Useful for mocking out functions during testing."
+ old values. Useful for mocking out functions during testing.
2261
+
2262
+ Note that under advanced compilation vars are statically resolved,
2263
+ preventing with-redef usage. If var redefinition is desired in a production
2264
+ setting then the var to be redefined must be declared ^:dynamic."
2265
[bindings & body]
2266
(core/let [names (take-nth 2 bindings)
2267
vals (take-nth 2 (drop 1 bindings))
0 commit comments