summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Function/prototype/bind/15.3.4.5-2-9.js
blob: 1707ab3ce63e1d9af4aa2a3c391f2287f58caee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 15.3.4.5-2-9
description: Function.prototype.bind allows Target to be a constructor (Date)
---*/

var bdc = Date.bind(null);
var s = bdc(0, 0, 0);

assert.sameValue(typeof(s), 'string', 'typeof(s)');

reportCompare(0, 0);