summaryrefslogtreecommitdiff
path: root/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js
diff options
context:
space:
mode:
authorLeonardo Balter <leonardo.balter@gmail.com>2015-06-02 19:14:56 -0400
committerLeonardo Balter <leonardo.balter@gmail.com>2015-06-15 22:37:58 -0400
commitd9edb3593ad34da799e35089fbcfa27591e15acb (patch)
treebaacc9a97dea3ed802d5de0ade9e7b9fc0018c8c /test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js
parent99ca320b016826a9d2008fe1da61938e32cfe623 (diff)
downloadqtdeclarative-testsuites-d9edb3593ad34da799e35089fbcfa27591e15acb.tar.gz
Proxy: deleteProperty
Diffstat (limited to 'test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js')
-rw-r--r--test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js b/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js
new file mode 100644
index 000000000..148a7b81a
--- /dev/null
+++ b/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js
@@ -0,0 +1,32 @@
+// Copyright (C) 2015 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+es6id: 9.5.10
+description: >
+ [[Delete]] (P)
+
+ The result is a Boolean value.
+features: [Reflect]
+---*/
+
+var target = {};
+var p = new Proxy(target, {
+ deleteProperty: function() {
+ return 0;
+ }
+});
+
+Object.defineProperties(target, {
+ isConfigurable: {
+ value: 1,
+ configurable: true
+ },
+ notConfigurable: {
+ value: 1,
+ configurable: false
+ }
+});
+
+assert.sameValue(Reflect.deleteProperty(p, "attr"), false);
+assert.sameValue(Reflect.deleteProperty(p, "isConfigurable"), false);
+assert.sameValue(Reflect.deleteProperty(p, "notConfigurable"), false);