diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-24 00:13:43 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-24 00:13:43 -0400 |
| commit | 34cb16f6dd3c06d07f3d74b2a49aa22ed0b50bd5 (patch) | |
| tree | 140064aa42f43600fbcadbe6dfcb69a361b25857 /tests/test-init-keymap-registration.el | |
| parent | dd6723dd7a05c65337bcefd9f5cb1202c09f1874 (diff) | |
| download | dotemacs-34cb16f6dd3c06d07f3d74b2a49aa22ed0b50bd5.tar.gz dotemacs-34cb16f6dd3c06d07f3d74b2a49aa22ed0b50bd5.zip | |
fix(coverage): bind json reader vars dynamically in simplecov parsers
The simplecov parse helpers let-bound json-object-type, json-array-type, and json-key-type around json-read-file to get string-keyed hash tables. Under lexical-binding the compiler hadn't seen json.el's defvars, so it compiled those as lexical bindings that never reached the reader; the compiled helpers got json.el's default symbol-keyed alist and then signaled wrong-type-argument hash-table-p in their maphash. Interpreted code happened to work because the in-function require made the vars special first. Add eval-when-compile (require 'json) so the compiler treats them as dynamic.
Claude-Session: https://claude.ai/code/session_01BqrdWUo9GcznYX2pZr76gZ
Diffstat (limited to 'tests/test-init-keymap-registration.el')
0 files changed, 0 insertions, 0 deletions
