Merge pull request #15352 from hrwX/add_writable

fix: value associated with property may be changed
This commit is contained in:
mergify[bot] 2021-12-20 05:52:57 +00:00 committed by GitHub
commit 0b50f2aeb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,8 @@ Object.defineProperty(Object.prototype, "setDefault", {
value: function(key, default_value) {
if (!(key in this)) this[key] = default_value;
return this[key];
}
},
writable: true
});
// Pluralize