mirror of
https://github.com/tc39/test262.git
synced 2025-08-28 21:38:26 +02:00
21 lines
597 B
JavaScript
21 lines
597 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 hasOwnProperty method is 1
|
|
*
|
|
* @path ch15/15.2/15.2.4/15.2.4.5/S15.2.4.5_A11.js
|
|
* @description Checking the Object.prototype.hasOwnProperty.length
|
|
*/
|
|
|
|
//CHECK#1
|
|
if (!(Object.prototype.hasOwnProperty.hasOwnProperty("length"))) {
|
|
$ERROR('#1: The length property of the toObject method is 1');
|
|
}
|
|
|
|
//CHECK#2
|
|
if (Object.prototype.hasOwnProperty.length !== 1) {
|
|
$ERROR('#2: The length property of the toObject method is 1');
|
|
}
|
|
|