summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/ThrowTypeError/frozen.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/ThrowTypeError/frozen.js')
-rw-r--r--js/src/tests/test262/built-ins/ThrowTypeError/frozen.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/ThrowTypeError/frozen.js b/js/src/tests/test262/built-ins/ThrowTypeError/frozen.js
new file mode 100644
index 0000000000..d3d2c7763d
--- /dev/null
+++ b/js/src/tests/test262/built-ins/ThrowTypeError/frozen.js
@@ -0,0 +1,24 @@
+// Copyright (C) 2016 André Bargull. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-%throwtypeerror%
+description: >
+ The integrity level of %ThrowTypeError% is "frozen".
+info: |
+ %ThrowTypeError% ( )
+
+ The value of the [[Extensible]] internal slot of a %ThrowTypeError%
+ function is false.
+ The length property of a %ThrowTypeError% function has the attributes
+ { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.
+---*/
+
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
+
+assert.sameValue(Object.isFrozen(ThrowTypeError), true);
+
+reportCompare(0, 0);