2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
|
|
|
info: Object constructor has length property whose value is 1
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 15.2.3_A3
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Checking Object.length
|
|
|
|
---*/
|
2021-08-12 22:28:19 +02:00
|
|
|
assert(
|
2022-11-24 18:18:10 +01:00
|
|
|
Object.prototype.hasOwnProperty.call(Object, "length"),
|
|
|
|
"The Object constructor has a 'length' own property"
|
2021-08-12 22:28:19 +02:00
|
|
|
);
|
2011-09-07 08:35:18 +02:00
|
|
|
|
2021-08-12 22:28:19 +02:00
|
|
|
assert.sameValue(Object.length, 1, 'The value of Object.length is expected to be 1');
|