summaryrefslogtreecommitdiff
path: root/test/built-ins/Function/prototype/toString/bound-function.js
blob: b6ceb116ef580e2e2c32e2412a44dcc77ac36c23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright (C) 2016 Michael Ficarra. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-function.prototype.tostring
description: Function.prototype.toString on bound function exotic objects
includes: [nativeFunctionMatcher.js]
---*/

let f = function(){}.bind(null);

assert(NATIVE_FUNCTION_RE.test("" + f), "looks pretty much like a NativeFunction");