devalue icon indicating copy to clipboard operation
devalue copied to clipboard

fix: do not iterate over prototype properties of reducers

Open danielroe opened this issue 1 year ago • 0 comments

reproduction: https://stackblitz.com/edit/stackblitz-starters-iiewc5

import { stringify } from 'devalue';

let a = {};
a.__proto__.appConfigEnabled = 1;

stringify({}, {});
// Error: fn is not a function

danielroe avatar Aug 30 '24 10:08 danielroe