summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/TypedArrayConstructors/Uint8Array/prototype.js
blob: 6268bee61eb56f51f23f55d2c9b322ea9209d17b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-typedarray.prototype
description: >
  The initial value of Uint8Array.prototype is the Uint8Array prototype object.
info: |
  The initial value of TypedArray.prototype is the corresponding TypedArray prototype intrinsic object (22.2.6).

  This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.
includes: [propertyHelper.js]
features: [TypedArray]
---*/

assert.sameValue(Uint8Array.prototype, Object.getPrototypeOf(new Uint8Array(0)));

verifyNotEnumerable(Uint8Array, "prototype");
verifyNotWritable(Uint8Array, "prototype");
verifyNotConfigurable(Uint8Array, "prototype");

reportCompare(0, 0);