replace Object.keys with Object.getOwnPropertyNames in Terror.extendCodes