Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / NativeErrors / EvalError / prototype.js
blob6e4325345044dab673ca74812e88c11d1309f882
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 es6id: 19.5.6.2.1
6 description: >
7   The initial value of EvalError.prototype is the EvalError prototype object.
8 info: |
9   The initial value of NativeError.prototype is a NativeError prototype object (19.5.6.3).
10   Each NativeError constructor has a distinct prototype object.
11   This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.
12 includes: [propertyHelper.js]
13 ---*/
15 assert.sameValue(EvalError.prototype, Object.getPrototypeOf(new EvalError));
17 verifyNotEnumerable(EvalError, "prototype");
18 verifyNotWritable(EvalError, "prototype");
19 verifyNotConfigurable(EvalError, "prototype");
21 reportCompare(0, 0);