diff --git a/src/index.js b/src/index.js index 8e9b734d2..7fb4cd256 100644 --- a/src/index.js +++ b/src/index.js @@ -18,6 +18,9 @@ function combine(src, to) { let i = keys.length; while (i--) { const k = keys[i]; + if (k === "__proto__" || k === "constructor" || k === "prototype") { + continue; + } const val = src[k]; if (val === null) { delete to[k];