rtfeldman / seamless-immutable

Immutable data structures for JavaScript which are backwards-compatible with normal JS Arrays and Objects.
BSD 3-Clause "New" or "Revised" License
5.37k stars 195 forks source link

__immutable_invariants_hold is enumerable on Edge #254

Closed srolel closed 6 years ago

srolel commented 6 years ago

This is a weird one.

http://jsfiddle.net/s9apwmtd/11/

It happens under the following circumstances:

  1. Edge browser
  2. Immutable.static is used
  3. Object has 128 keys
  4. keys have a dash

Under those circumstances (at least), the __immutable_invariants_hold property is enumerable.

srolel commented 6 years ago

Looks like this is a ChakraCore issue that has been fixed and will be released in edge in the future.

https://github.com/Microsoft/ChakraCore/issues/5382