Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: Problem with YUI 3.1.1 Date: Tue, 16 Dec 2014 19:11:59 +0100 Organization: solani.org Lines: 21 Message-ID: References: <7hp09ad5hp1771k1ai62gg7g4kfco080bo@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1418753516 12462 eJwFwQkBwDAIA0BLhRLI5DAe/xJ6h+viFeZww2KzflBGgrrfJJeh4014jxxelRBmDXg6mPYAH2UQ5g== (16 Dec 2014 18:11:56 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 16 Dec 2014 18:11:56 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 X-User-ID: eJwFwYkRwDAIA7CVeIxzGYeasP8IlSrp1AGLqK3dkSE1zM6+9zN2lB08Saugjx+7lS8GPsAPJ7oRHg== In-Reply-To: <7hp09ad5hp1771k1ai62gg7g4kfco080bo@4ax.com> Cancel-Lock: sha1:KP4IZBj/0ajvxJSFfiWWBTbj3D8= X-NNTP-Posting-Host: eJwFwQkBACAMAsBKPoNhHHXSP4J3mOy8GQQDhmujcy5m6rWs2fx8FBUxqlnD2OqMA1G+Sx8UBxDC Xref: csiph.com comp.lang.javascript:26336 Stefan Jansen wrote: > Hi all, I've run Google Closure on a large set of third party JS code > that we're using. When turning off warnings and showing just errors, > the following file from YUI 3.1.1 remains: > > (also included at the bottom of this message). Closure complains: > "Parse error. 'identifier' expected" about the line with setter, in > the column with the opening parenthesis before val. Yes, the file is syntactically in error; it seems to me that it has been corrupted somehow. Besides the empty else clause (which might be an oversight of the programmer), apparently, there is the start of an object literal missing before line 17, and also there is no return statement, even though the name of the method suggest one to be there. Anyhow, I suggest that you ask in a YUI3 related forum: . -- Christoph M. Becker