Extension clause permits function declarations more or less anywhere.
Moved four such negative test cases to best practices directory.
This commit is contained in:
David Fugate 2012-02-24 14:28:50 -08:00
parent 35af99abe1
commit d9e409ac1b
4 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
/**
* Function declaration within an "if" statement is not allowed
*
* @path ch12/12.5/S12.5_A9_T3.js
* @path bestPractice/Sbp_12.5_A9_T3.js
* @description Declaring function within an "if" statement that is declared within the function declaration
* @negative
*/

View File

@ -4,7 +4,7 @@
/**
* FunctionDeclaration within a "do-while" Block is not allowed
*
* @path ch12/12.6/12.6.1/S12.6.1_A13_T3.js
* @path bestPractice/Sbp_12.6.1_A13_T3.js
* @description Declaring a function within a "do-while" loop that is within a function declaration itself
* @negative
*/

View File

@ -4,7 +4,7 @@
/**
* FunctionDeclaration within a "while" Statement is not allowed
*
* @path ch12/12.6/12.6.2/S12.6.2_A13_T3.js
* @path bestPractice/Sbp_12.6.2_A13_T3.js
* @description Checking if declaring a function within a "while" Statement that is in a function body leads to an exception
* @negative
*/

View File

@ -4,7 +4,7 @@
/**
* FunctionDeclaration within a "for-in" Statement is not allowed
*
* @path ch12/12.6/12.6.4/S12.6.4_A13_T3.js
* @path bestPractice/Sbp_12.6.4_A13_T3.js
* @description Declaring function within a "for-in" Statement that is within function declaration
* @negative
*/