S10.1.1_A1_T1.js (572B)
1 // Copyright 2009 the Sputnik authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: | 6 Program functions are defined in source text by a FunctionDeclaration or created dynamically either 7 by using a FunctionExpression or by using the built-in Function object as a constructor 8 es5id: 10.1.1_A1_T1 9 description: Defining function by a FunctionDeclaration 10 ---*/ 11 12 //CHECK#1 13 function f1(){ 14 return 1; 15 } 16 if(typeof(f1)!=="function") 17 throw new Test262Error('#1: typeof(f1)!=="function"'); 18 19 reportCompare(0, 0);