Repository navigation
Commit 17c35da
committed
Don't crash on Ruby 4.1, which removed ObjectSpace._id2ref
objectspace/op_fetch.rb aliases ObjectSpace[] to _id2ref, which Ruby head
(4.1) no longer has. The alias raised NameError at load time, and since
facets/objectspace loads it, so did `require 'facets'`. The unit tests
never load that file, so only the new qed step caught it.
ObjectSpace[] is now only defined where _id2ref exists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E2Njj4j1r9twkVcXsMySLW1 parent 0de0722 commit 17c35da
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
0 commit comments