mirror of
https://github.com/tc39/test262.git
synced 2025-08-28 21:38:26 +02:00
26 lines
653 B
JavaScript
26 lines
653 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* The length property of the call method is 1
|
|
*
|
|
* @path ch15/15.3/15.3.4/15.3.4.4/S15.3.4.4_A2_T1.js
|
|
* @description Checking Function.prototype.call.length
|
|
*/
|
|
|
|
//CHECK#1
|
|
if (typeof Function.prototype.call !== "function") {
|
|
$ERROR('#1: call method defined');
|
|
}
|
|
|
|
//CHECK#2
|
|
if (typeof Function.prototype.call.length === "undefined") {
|
|
$ERROR('#2: length property of call method defined');
|
|
}
|
|
|
|
//CHECK#3
|
|
if (Function.prototype.call.length !== 1) {
|
|
$ERROR('#3: The length property of the call method is 1');
|
|
}
|
|
|