Debian Codegraph @

js/src/tests/test262/built-ins/Function/S15.3.5_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: The value of the [[Class]] property is "Function"
6 es5id: 15.3.5_A1_T2
7 description: For testing use variable f = Function()
8 ---*/
9
10 var f = Function();
11
12 assert.sameValue(
13 Object.prototype.toString.call(f),
14 "[object Function]",
15 'Object.prototype.toString.call(Function()) must return "[object Function]"'
16 );
17
18 reportCompare(0, 0);