Closed ericyhwang closed 1 year ago
https://github.com/derbyjs/racer/pull/293 meant that the for..in Contexts#unloadAll would loop over the new toJSON method as well.
Contexts#unloadAll
toJSON
Add a hasOwnProperty guard to skip over the toJSON method and any future ones that may be added.
hasOwnProperty
https://github.com/derbyjs/racer/pull/293 meant that the for..in
Contexts#unloadAll
would loop over the newtoJSON
method as well.Add a
hasOwnProperty
guard to skip over thetoJSON
method and any future ones that may be added.