diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2024-05-09 11:38:07 +0200 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2024-05-09 12:23:34 +0200 |
commit | e82138e48a7ff152e358ce37fdae07e989fe5ee3 (patch) | |
tree | f72bae86304c5ba69c609e30b570e91546c35453 /test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt | |
parent | 8b3280bebd901cd7e42fe1d3f31152443f0e9040 (diff) |
Stabilize TestObjSpace#test_dump_special_consts
The test assumes `:foo` is a static symbol, but that is only true
if a literal `:foo` was parsed before `"foo".to_sym` was evaled:
```ruby
require 'objspace'
foo_sym = "foo".to_sym
puts ObjectSpace.dump(eval(":foo"))
```
```
{"address":"0x100fb46d0", "type":"SYMBOL", "shape_id":10, "slot_size":40, "class":"0x100d3e9c8", "frozen":true, "bytesize":3, "value":"foo", "memsize":40, "flags":{"wb_protected":true, "marking":true, "marked":true}}
```
Diffstat (limited to 'test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt')
0 files changed, 0 insertions, 0 deletions