Skip to content

Commit 578b0bc

Browse files
committed
exclude __proto__
1 parent 7705bdf commit 578b0bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ function mixinDeep(target, objects) {
2323
*/
2424

2525
function copy(val, key) {
26+
if (key === '__proto__') {
27+
return;
28+
}
29+
2630
var obj = this[key];
2731
if (isObject(val) && isObject(obj)) {
2832
mixinDeep(obj, val);

0 commit comments

Comments
 (0)