If I create a user script with the following code, Resource Loader rejects it with the error message
Error: JavaScript parse error: Parse error: Unexpected token; token 3 expected in file 'User:He7d3r/global.js' on line 2
var foo = { 'true': 0.6 }; alert( foo.true );
However, this is valid JavaScript code according to jshint, and works in the console of latest Firefox and Chrome.
See also: