Debian Codegraph @

js/src/tests/test262/language/statements/function/S13.2_A1_T2.js

raw
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: A "prototype" property is automatically created for every function
6 es5id: 13.2_A1_T2
7 description: Using "var __func = function(){}" as a FunctionDeclaration
8 ---*/
9
10 var __func = function(){};
11
12 //////////////////////////////////////////////////////////////////////////////
13 //CHECK#1
14 if (__func.prototype === undefined) {
15 throw new Test262Error('#1: __func.prototype !== undefined');
16 }
17 //
18 //////////////////////////////////////////////////////////////////////////////
19
20 reportCompare(0, 0);