Skip to content
Snippets Groups Projects
Commit fd40a156 authored by Mark Miller's avatar Mark Miller
Browse files

minor

parent b796d10c
No related branches found
No related tags found
No related merge requests found
...@@ -10,8 +10,9 @@ ...@@ -10,8 +10,9 @@
* @description: Returning number. Declaring a function with "function __func()"; * @description: Returning number. Declaring a function with "function __func()";
*/ */
var x;
function __func(){ function __func(){
var x = 1; x = 1;
return x; return x;
} }
...@@ -27,7 +28,7 @@ try { ...@@ -27,7 +28,7 @@ try {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
try{ try{
var __x=__func() var __x=__func();
} catch(e){ } catch(e){
$ERROR('#1: var __x=__func() does not lead to throwing exception. Actual: exception is '+e); $ERROR('#1: var __x=__func() does not lead to throwing exception. Actual: exception is '+e);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment