mirror of https://github.com/tc39/test262.git
minor
This commit is contained in:
parent
b796d10c4b
commit
fd40a156e4
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue