summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/NativeErrors/ReferenceError/prototype.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/NativeErrors/ReferenceError/prototype.js')
-rw-r--r--js/src/tests/test262/built-ins/NativeErrors/ReferenceError/prototype.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/NativeErrors/ReferenceError/prototype.js b/js/src/tests/test262/built-ins/NativeErrors/ReferenceError/prototype.js
new file mode 100644
index 0000000000..3031815ead
--- /dev/null
+++ b/js/src/tests/test262/built-ins/NativeErrors/ReferenceError/prototype.js
@@ -0,0 +1,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 ReferenceError.prototype is the ReferenceError 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(ReferenceError.prototype, Object.getPrototypeOf(new ReferenceError));
+
+verifyNotEnumerable(ReferenceError, "prototype");
+verifyNotWritable(ReferenceError, "prototype");
+verifyNotConfigurable(ReferenceError, "prototype");
+
+reportCompare(0, 0);