summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Function/prototype/toString/bound-function.js
blob: b5e2361c5fea89bcba791ecc6346fa35ecc1d943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2016 Michael Ficarra. All rights reserved.
// Copyright (C) 2018 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-function.prototype.tostring
description: >
  toString bound function does not throw (bound Function Expression)
info: |
  ...
  If func is a Bound Function exotic object or a built-in Function object,
  then return an implementation-dependent String source code representation
  of func. The representation must have the syntax of a NativeFunction
  ...
includes: [nativeFunctionMatcher.js]
---*/

assertNativeFunction(function() {}.bind({}));

reportCompare(0, 0);