|
|
|
|
|
by vjeux
4995 days ago
|
|
Unfortunately their hash table uses Javascript objects. Therefore it does not behave exactly like Ruby. Eg: # Opal
h = Hash.new
h['0'] = 1
h[0] = 2
print h
# {"0"=>2}
# Ruby
h = Hash.new
h['0'] = 1
h[0] = 2
print h
# {"0"=>1, 0=>2}
It is very hard to reproduce those low level specifications without rebuilding everything from scratch sadly :( |
|