Merge pull request #15352 from hrwX/add_writable
fix: value associated with property may be changed
This commit is contained in:
commit
0b50f2aeb4
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue