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

/*---
es6id: 22.2.5.2
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]
---*/

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

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