mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-29 03:45:46 +01:00
Fix mode name generated for longer names in mapping serialization. Closes issue #565.
--HG-- extra : rebase_source : 115073fae6cf2a15692cac72df976e1eacf5298e
This commit is contained in:
@@ -68,11 +68,9 @@ if (!Object.defineProperties)
|
||||
}
|
||||
if (!Object.freeze)
|
||||
Object.freeze = function freeze(obj) {};
|
||||
if (!Object.getOwnPropertyDescriptor)
|
||||
Object.getOwnPropertyDescriptor = function getOwnPropertyDescriptor(obj, prop) {
|
||||
if (!Object.getPropertyDescriptor)
|
||||
Object.getPropertyDescriptor = function getOwnPropertyDescriptor(obj, prop) {
|
||||
try {
|
||||
if (!hasOwnProperty.call(obj, prop))
|
||||
return undefined;
|
||||
let desc = {
|
||||
configurable: true,
|
||||
enumerable: propertyIsEnumerable.call(obj, prop)
|
||||
@@ -93,6 +91,11 @@ if (!Object.getOwnPropertyDescriptor)
|
||||
throw e.stack ? e : Error(e);
|
||||
}
|
||||
};
|
||||
if (!Object.getOwnPropertyDescriptor)
|
||||
Object.getOwnPropertyDescriptor = function getOwnPropertyDescriptor(obj, prop) {
|
||||
if (hasOwnProperty.call(obj, prop))
|
||||
return Object.getPropertyDescriptor(obj, prop);
|
||||
};
|
||||
if (!Object.getOwnPropertyNames)
|
||||
Object.getOwnPropertyNames = function getOwnPropertyNames(obj, _debugger) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user