Revision: 226
http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=226&view=rev
Author: matthiasmiller
Date: 2008-08-27 16:11:25 +0000 (Wed, 27 Aug 2008)
Log Message:
-----------
unreferenced_identifier: add another test case
Modified Paths:
--------------
trunk/tests/warnings/unreferenced_identifier.js
Modified: trunk/tests/warnings/unreferenced_identifier.js
===================================================================
--- trunk/tests/warnings/unreferenced_identifier.js 2008-08-27 02:30:20 UTC (rev 225)
+++ trunk/tests/warnings/unreferenced_identifier.js 2008-08-27 16:11:25 UTC (rev 226)
@@ -72,6 +72,10 @@
tmp = ref_dec--; /*warning:inc_dec_within_stmt*/
tmp = -tmp;
+ /* Test named functions as references. */
+ var fn = function ref_func() { return 42; }; /*warning:unreferenced_identifier*/
+ fn();
+
/* Test nested scopes. */
function get_callback(parm) {
return function() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|