{"action":"created","issue":{"url":"https://api.github.com/repos/douglascrockford/JSLint/issues/178","repository_url":"https://api.github.com/repos/douglascrockford/JSLint","labels_url":"https://api.github.com/repos/douglascrockford/JSLint/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/douglascrockford/JSLint/issues/178/comments","events_url":"https://api.github.com/repos/douglascrockford/JSLint/issues/178/events","html_url":"https://github.com/douglascrockford/JSLint/issues/178","id":142356416,"number":178,"title":"`Date.UTC` function is interpreted as a constructor","user":{"login":"apsillers","id":300913,"avatar_url":"https://avatars.githubusercontent.com/u/300913?v=3","gravatar_id":"","url":"https://api.github.com/users/apsillers","html_url":"https://github.com/apsillers","followers_url":"https://api.github.com/users/apsillers/followers","following_url":"https://api.github.com/users/apsillers/following{/other_user}","gists_url":"https://api.github.com/users/apsillers/gists{/gist_id}","starred_url":"https://api.github.com/users/apsillers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsillers/subscriptions","organizations_url":"https://api.github.com/users/apsillers/orgs","repos_url":"https://api.github.com/users/apsillers/repos","events_url":"https://api.github.com/users/apsillers/events{/privacy}","received_events_url":"https://api.github.com/users/apsillers/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-21T13:59:23Z","updated_at":"2016-05-09T18:41:48Z","closed_at":"2016-03-21T18:14:12Z","body":"JSLint incorrectly understands the built-in JavaScript function [`Date.UTC`](http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.4.3) as a constructor because `UTC` begins with a capital letter. Obviously, in order to comply with JSLint's standards, developers shouldn't have non-constructors that begin with a capital letter, but apparently nobody mentioned that to the ECMAScript committee in 2011.\r\n\r\nCould JSLint allow the unusually-capitalized standards-specified `UTC` function without complaint, when called (correctly) without `new`?"},"comment":{"url":"https://api.github.com/repos/douglascrockford/JSLint/issues/comments/217951762","html_url":"https://github.com/douglascrockford/JSLint/issues/178#issuecomment-217951762","issue_url":"https://api.github.com/repos/douglascrockford/JSLint/issues/178","id":217951762,"user":{"login":"codinggenie","id":13944202,"avatar_url":"https://avatars.githubusercontent.com/u/13944202?v=3","gravatar_id":"","url":"https://api.github.com/users/codinggenie","html_url":"https://github.com/codinggenie","followers_url":"https://api.github.com/users/codinggenie/followers","following_url":"https://api.github.com/users/codinggenie/following{/other_user}","gists_url":"https://api.github.com/users/codinggenie/gists{/gist_id}","starred_url":"https://api.github.com/users/codinggenie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codinggenie/subscriptions","organizations_url":"https://api.github.com/users/codinggenie/orgs","repos_url":"https://api.github.com/users/codinggenie/repos","events_url":"https://api.github.com/users/codinggenie/events{/privacy}","received_events_url":"https://api.github.com/users/codinggenie/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T18:41:48Z","updated_at":"2016-05-09T18:41:48Z","body":" @douglascrockford I have taken the latest commit of jslint. \r\n1 parent 2e33282 commit 2aca732ace5b383d09db005f045f51273f3061c2. new ...() \r\n\r\nThe issue is popping up again. I am getting the messages \"Expected 'new' before 'Date'.\". I can see the fix for \"Date.UTC\" still in latest committed code. Is this expected ?"}}