fippo / rtcstats

MIT License
129 stars 41 forks source link

JSON.parse(JSON.stringify(stats)) broken when used with es7 #39

Closed fippo closed 7 years ago

fippo commented 7 years ago

on appear.in we use babel-polyfill which results in JSON.stringify(new Map()) returning "[]" (which, as @jan-ivar found out, is correct ES7).

This breaks the use of JSON.parse(JSON.stringify(stats)) used for deep-copying.