mirror of
https://github.com/flynx/types.js.git
synced 2025-12-19 18:01:39 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4316d877c2
commit
9236ddeb22
@ -98,11 +98,15 @@ Object.sort = function(obj, keys){
|
||||
delete obj[k]
|
||||
Object.defineProperty(obj, k, v) } })
|
||||
return obj }
|
||||
//* XXX for some reason this shadows Map.prototype.sort
|
||||
Object.prototype.sort
|
||||
|| Object.defineProperty(Object.prototype, 'sort', {
|
||||
writable: true,
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
value: function(keys){
|
||||
return Object.sort(this, keys) }, })
|
||||
//*/
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user