summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Boolean/prototype/S15.6.3.1_A3-strict.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Boolean/prototype/S15.6.3.1_A3-strict.js')
-rw-r--r--js/src/tests/test262/built-ins/Boolean/prototype/S15.6.3.1_A3-strict.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Boolean/prototype/S15.6.3.1_A3-strict.js b/js/src/tests/test262/built-ins/Boolean/prototype/S15.6.3.1_A3-strict.js
new file mode 100644
index 0000000000..9f4025f160
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Boolean/prototype/S15.6.3.1_A3-strict.js
@@ -0,0 +1,20 @@
+'use strict';
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+info: Boolean.prototype has the attribute DontDelete
+esid: sec-boolean.prototype
+description: Checking if deleting the Boolean.prototype property fails
+includes: [propertyHelper.js]
+flags: [onlyStrict]
+---*/
+
+// CHECK#1
+verifyNotConfigurable(Boolean, "prototype");
+
+assert.throws(TypeError, () => {
+ delete Boolean.prototype;
+});
+
+reportCompare(0, 0);