зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1317306: Length property of %TypedArray% is zero in ES2016. r=evilpie
This commit is contained in:
Родитель
9d001f6f2b
Коммит
fb41301b0b
|
@ -0,0 +1,14 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
const TypedArray = Object.getPrototypeOf(Int32Array);
|
||||
|
||||
assertEq(TypedArray.length, 0);
|
||||
|
||||
assertDeepEq(Object.getOwnPropertyDescriptor(TypedArray, "length"), {
|
||||
value: 0, writable: false, enumerable: false, configurable: true,
|
||||
});
|
||||
|
||||
if (typeof reportCompare === "function")
|
||||
reportCompare(0, 0);
|
|
@ -1514,7 +1514,7 @@ TypedArrayObject::staticProperties[] = {
|
|||
|
||||
static const ClassSpec
|
||||
TypedArrayObjectSharedTypedArrayPrototypeClassSpec = {
|
||||
GenericCreateConstructor<TypedArrayConstructor, 3, gc::AllocKind::FUNCTION>,
|
||||
GenericCreateConstructor<TypedArrayConstructor, 0, gc::AllocKind::FUNCTION>,
|
||||
GenericCreatePrototype,
|
||||
TypedArrayObject::staticFunctions,
|
||||
TypedArrayObject::staticProperties,
|
||||
|
|
Загрузка…
Ссылка в новой задаче