RyanMarcus / dirty-json

A parser for invalid JSON
GNU Affero General Public License v3.0
307 stars 30 forks source link

fix bug #31

Closed 0x0a0d closed 4 years ago

0x0a0d commented 4 years ago

dirty-json will crash if it is required more than 1 times (with difference paths that make require.cache ignore). When call Object.defineProperty directly to Array.property, it also crash too if there is any modules try to define these properties (peek & last) again.