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

/*---
es6id: 19.5.6.2.1
description: >
  The initial value of URIError.prototype is the URIError prototype object.
info: |
  The initial value of NativeError.prototype is a NativeError prototype object (19.5.6.3).
  Each NativeError constructor has a distinct prototype object.
  This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.
includes: [propertyHelper.js]
---*/

assert.sameValue(URIError.prototype, Object.getPrototypeOf(new URIError));

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

reportCompare(0, 0);