You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it checks whether the key already exists, but in that case does not set the new value.
ES2015 says at 23.1.3.9:
5. Repeat for each Record {[[key]], [[value]]} p that is an element of entries,
a. If p.[[key]] is not empty and SameValueZero(p.[[key]], key) is true, then
i. Set p.[[value]] to value.
ii. Return M.
So it seems the first if branch misses the code to set the new value.
Thanks!
The text was updated successfully, but these errors were encountered:
kpreisser
added a commit
to kpreisser/jurassic
that referenced
this issue
Oct 24, 2016
Hi,
when running the following code in Firefox, Chrome or other browsers:
the return value is
8
(asset(1, 8)
should overwrite the existing entry with value2
).However, on Jurassic it returns
2
.MapInstance.Set()
looks like the following:So it checks whether the key already exists, but in that case does not set the new value.
ES2015 says at 23.1.3.9:
So it seems the first
if
branch misses the code to set the new value.Thanks!
The text was updated successfully, but these errors were encountered: