summaryrefslogtreecommitdiff
path: root/test/built-ins/NativeErrors/URIError/instance-proto.js
blob: 5f17327602108f9f138226dd21d37ca1e5f307b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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.4
description: >
  The prototype of URIError instances is URIError.prototype.
info: |
  NativeError instances are ordinary objects that inherit properties
  from their NativeError prototype object and have an [[ErrorData]]
  internal slot whose value is undefined
---*/

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