Project

General

Profile

Actions

Bug #18171

closed

`Marshal` ignores `Hash#compare_by_identity`

Added by nobu (Nobuyoshi Nakada) about 3 years ago. Updated about 3 years ago.

Status:
Closed
Target version:
-
[ruby-core:105282]

Description

Is this a bug?

h = {}.compare_by_identity
h["a"+"1"] = "1"
h["a"+"1"] = "2"
p h                             #=> {"a1"=>"1", "a1"=>"2"}
p Marshal.load(Marshal.dump(h)) #=> {"a1"=>"2"}
Actions #1

Updated by nobu (Nobuyoshi Nakada) about 3 years ago

  • Status changed from Open to Closed

Applied in changeset git|d08721465850a6e6954b43bbfebe2ed5a7256dec.


Restore Hash#compare_by_identity mode [Bug #18171]

Actions

Also available in: Atom PDF

Like0
Like0