blob: 6c9cbe659b4394e45974b7729d8c3baab6f10489 [file] [log] [blame]
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The length property of the hasOwnProperty method is 1
es5id: 15.2.4.7_A11
description: Checking the value of Object.prototype.hasOwnProperty.length
---*/
//CHECK#1
if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty("length"))) {
$ERROR('#1: the Object.prototype.propertyIsEnumerable has length property');
}
//CHECK#2
if (Object.prototype.propertyIsEnumerable.length !== 1) {
$ERROR('#2: The length property of the toObject method is 1');
}