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
varsetSize=Object.getOwnPropertyDescriptor(Set.prototype,'size').get;varmapSize=Object.getOwnPropertyDescriptor(Map.prototype,'size').get;setSize.call(newSet());// 0mapSize.call(newMap());// 0assert.throws(function(){setSize.call(newMap());});// should throw but does notassert.throws(function(){mapSize.call(newSet());});// should throw but does not
This code passes on es6-shim, and in any engine with native Map/Set.
The text was updated successfully, but these errors were encountered:
This code passes on es6-shim, and in any engine with native
Map
/Set
.The text was updated successfully, but these errors were encountered: