This simply replaces a single array of invalid keys that is manually set with two separate ones for the Object and Array prototypes in order to block all potentially harmful keys from being set. Since all objects inherit from the Object prototype, the array for the Object prototype is not conditional based on the type of the current object with the property being set.
Fixes #239
This simply replaces a single array of invalid keys that is manually set with two separate ones for the
Object
andArray
prototypes in order to block all potentially harmful keys from being set. Since all objects inherit from theObject
prototype, the array for theObject
prototype is not conditional based on the type of the current object with the property being set.