Update %TypedArray% function length

This commit is contained in:
Leonardo Balter 2016-01-22 15:00:44 -05:00
parent 7d715a4ef1
commit 4bdd808d04
1 changed files with 6 additions and 7 deletions

View File

@ -1,23 +1,22 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.2
es7id: pending
description: >
TypedArray has a "length" property whose value is 3.
TypedArray has a "length" property whose value is 0.
info: >
22.2.2 Properties of the %TypedArray% Intrinsic Object
22.2.1.1 %TypedArray% ()
Besides a length property whose value is 3 and a name property whose value is
"TypedArray", %TypedArray% has the following properties:
The length property of the %TypedArray% constructor function is 0.
...
ES6 section 17: Unless otherwise specified, the length property of a built-in
ES7 section 17: Unless otherwise specified, the length property of a built-in
Function object has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.length, 3);
assert.sameValue(TypedArray.length, 0);
verifyNotEnumerable(TypedArray, 'length');
verifyNotWritable(TypedArray, 'length');