Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / TypedArray / prototype / constructor.js
blobd41ffbfa41d5dadc9dc6a5d0ee99f094c1cec418
1 // Copyright (C) 2015 AndrĂ© Bargull. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-%typedarray%.prototype.constructor
6 description: >
7   Initial state of the constructor property
8 info: |
9   The initial value of %TypedArray%.prototype.constructor is the %TypedArray% intrinsic object.
11   Per ES6 section 17, the method should exist on the %TypedArray% prototype, and it
12   should be writable and configurable, but not enumerable.
13 includes: [propertyHelper.js, testTypedArray.js]
14 features: [TypedArray]
15 ---*/
17 assert.sameValue(TypedArray.prototype.constructor, TypedArray);
19 verifyNotEnumerable(TypedArray.prototype, "constructor");
20 verifyWritable(TypedArray.prototype, "constructor");
21 verifyConfigurable(TypedArray.prototype, "constructor");
23 reportCompare(0, 0);