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 95f4ab3 commit 688c46aCopy full SHA for 688c46a
packages/convict/src/main.js
@@ -561,8 +561,10 @@ const convict = function convict(def, opts) {
561
const path = k.split('.')
562
const childKey = path.pop()
563
const parentKey = path.join('.')
564
- const parent = walk(this._instance, parentKey, true)
565
- parent[childKey] = v
+ if (!(parentKey == '__proto__' || parentKey == 'constructor' || parentKey == 'prototype')) {
+ const parent = walk(this._instance, parentKey, true)
566
+ parent[childKey] = v
567
+ }
568
return this
569
},
570
0 commit comments