update check for object literal properties according to ECMA spec