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 7afd0a3 commit b5f1391Copy full SHA for b5f1391
src/util.js
@@ -176,6 +176,9 @@ util.decorateEnum = function decorateEnum(object) {
176
util.setProperty = function setProperty(dst, path, value) {
177
function setProp(dst, path, value) {
178
var part = path.shift();
179
+ if (part === "__proto__") {
180
+ return dst;
181
+ }
182
if (path.length > 0) {
183
dst[part] = setProp(dst[part] || {}, path, value);
184
} else {
0 commit comments