summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Function/prototype/S15.3.4_A1.js
blob: b8243f7f34714af329fd469177cd2be770e324b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: |
    The Function prototype object is itself a Function object (its [[Class]]
    is "Function")
es5id: 15.3.4_A1
description: Object.prototype.toString returns [object+[[Class]]+]
---*/
assert.sameValue(
  Object.prototype.toString.call(Function.prototype),
  "[object Function]",
  'Object.prototype.toString.call(Function.prototype) must return "[object Function]"'
);

reportCompare(0, 0);