Repository navigation
Commit 637b375
committed
fix(cljw.json): write-str/read-str delegate at call time instead of def-aliasing
A def-alias read the clojure.data.json fn value at load time, so a
with-redefs or redefinition of the data.json var never reached
cljw.json/write-str or read-str, and both vars carried no :doc or
:arglists. They are now defns that apply the data.json var with the
same [x & options] / [s & options] arities and a docstring.
Verified against the installed cljw v1.14.11 by load-file of the
patched namespace (with-redefs reaches it, :key-fn passes through,
arglists and doc present). e2e phase16_cljw_json_fs gains four asserts;
not run here (no zig build on the saturated host).1 parent 3d36b47 commit 637b375
2 files changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
13 | 28 | | |
14 | 29 | | |
15 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| |||
0 commit comments