CARVIEW |
Select Language
HTTP/2 200
cache-control: max-age=0, private, must-revalidate
content-type: text/html; charset=utf-8
etag: W/"3401e6e1b8e6065d99613bc23ad84022"
nel: {"report_to":"heroku-nel","response_headers":["Via"],"max_age":3600,"success_fraction":0.01,"failure_fraction":0.1}
referrer-policy: strict-origin-when-cross-origin
report-to: {"group":"heroku-nel","endpoints":[{"url":"https://nel.heroku.com/reports?s=lfJARHlMtTSsA78HRQbRHf8Bb3IKQZ2bEZp8YUaX29I%3D\u0026sid=e11707d5-02a7-43ef-b45e-2cf4d2036f7d\u0026ts=1753286340"}],"max_age":3600}
reporting-endpoints: heroku-nel="https://nel.heroku.com/reports?s=lfJARHlMtTSsA78HRQbRHf8Bb3IKQZ2bEZp8YUaX29I%3D&sid=e11707d5-02a7-43ef-b45e-2cf4d2036f7d&ts=1753286340"
server: Heroku
set-cookie: _redmine_session=Q1FaOHZYSVFGSmtxeml1S1oxTlQyTDVkMm5DbjJiOUt6QUEvQ1ZBemR2QkMyaC9QZVJ5U2hXdThieWphQlpYSllyL0psWDRBb3BhMm9hMUZnOUs4STlXajU0REZ6aUJZRmR3OW4rVzhwRC9CRlhiME1vRzJ1ZHlRN3Eya3A3NVJ4SkhaQW1YaU82M0t1Z3BFSEY5SmJmRFNETUFaT05OYWJxZFlIN3J0c29lYXlDaHNHNmgxQVMyR1NCREJiVHZMLS1za0R3SDMvTmdxK3E4YlAzdkwzODdnPT0%3D--b7747d08b087b7e89e1cbfab4149bdb9416d6a1a; path=/; secure; httponly; samesite=lax
strict-transport-security: max-age=63072000; includeSubDomains
vary: Accept
via: 2.0 heroku-router
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-request-id: e8d04e84-d222-4414-156f-e92c37274be2
x-runtime: 0.171685
x-xss-protection: 1; mode=block
content-length: 29629
date: Wed, 23 Jul 2025 15:59:00 GMT
Bug #21374: FrozenError message is inconsistent when a singleton method is defined on a frozen object - Ruby - Ruby Issue Tracking System
Project
General
Profile
Tags
Custom queries
Actions
Bug #21374
openFrozenError message is inconsistent when a singleton method is defined on a frozen object
Added by andrykonchin (Andrew Konchin) about 2 months ago. Updated about 2 months ago.
Description
I would expect a message to contain an object class (e.g. can't modify frozen <class>: <object#inspect>
) when an ordinary frozen object (non a module or class) is being modified. It works this way in the following example:
object = []; object.freeze; object.instance_variable_set(:@a, 42)
# (irb):5:in `instance_variable_set': can't modify frozen Array: [] (FrozenError)
But it doesn't in the following example:
object = []; object.freeze; def object.x; end
# (irb):4:in `<main>': can't modify frozen object: [] (FrozenError)
Updated by andrykonchin (Andrew Konchin) about 2 months ago
- ruby -v set to 3.4.2
Updated by matz (Yukihiro Matsumoto) about 2 months ago
I agree with you. It should be consistent (and I prefer can't modify frozen Array: [] (FrozenError)
message). But there might be some internal reason. We have to investigate first.
Matz.
Actions
Like0
Like0Like0
Powered by Redmine © 2006-2025 Jean-Philippe Lang
Loading...