diff --git a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2.1_A7_T3.js b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2.1_A7_T3.js index a75a414f0e36d633dfd55ac343af90a35802bc69..59a14970c72a75cb3de32532cf4c23b7c5e75d03 100644 --- a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2.1_A7_T3.js +++ b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2.1_A7_T3.js @@ -10,8 +10,9 @@ * @description: Returning number. Declaring a function with "function __func()"; */ +var x; function __func(){ - var x = 1; + x = 1; return x; } @@ -27,7 +28,7 @@ try { ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try{ - var __x=__func() + var __x=__func(); } catch(e){ $ERROR('#1: var __x=__func() does not lead to throwing exception. Actual: exception is '+e); }