@support-rkalla wrote:
I believe it just wants you to quote the value, that will make it happy.
Why would I want to quote a numeric literal? The ECMAScript spec says that an object literal is
ObjectLiteral :
{}
{ PropertyNameAndValueList }
PropertyNameAndValueList :
PropertyName : AssignmentExpression
PropertyNameAndValueList , PropertyName : AssignmentExpression
PropertyName :
Identifier
StringLiteral
NumericLiteral
AssignmentExpression :
ConditionalExpression
LeftHandSideExpression AssignmentOperator AssignmentExpression
And ConditionalExpression ultimately bottoms out in
PrimaryExpression :
this
Identifier
Literal
ArrayLiteral
ObjectLiteral
( Expression )
where Literal includes numeric literals. So, seeing as my syntax is good, why would I want to use the wrong type? I believe this is a bug in the validator, plain and simple.