We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3d6c8e commit 67ad7ddCopy full SHA for 67ad7dd
lib/apply.js
@@ -15,6 +15,9 @@ module.exports = function apply(target, patch) {
15
var keys = Object.keys(patch);
16
for (var i = 0; i < keys.length; i++) {
17
var key = keys[i];
18
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
19
+ return target;
20
+ }
21
if (patch[key] === null) {
22
if (target.hasOwnProperty(key)) {
23
delete target[key];
0 commit comments