If a property definition has the form of a FunctionDeclaration without the keyword function it is a non-enumerable, non-writable, non-configurable data property definition whose name is the function name. This is called a method definition.
But defined in such way function is writable, enumerable, configurable.
If a property definition is the above form of FunctionDeclaration or is a get or set property definition the comma that separates it from the following property definition may be omitted.
But defined in such way function is writable, enumerable, configurable.
But error occurs when such syntax is used.
Source: http://wiki.ecmascript.org/doku.php?id=harmony:object_literals#object_literal_property_shorthands