summaryrefslogtreecommitdiff
path: root/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js')
-rw-r--r--test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js24
1 files changed, 18 insertions, 6 deletions
diff --git a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js
index 189bc701a..5353aaf00 100644
--- a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js
+++ b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js
@@ -36,31 +36,43 @@ var p = new Proxy(target, {
var result;
called = 0;
-result = Reflect.setPrototypeOf(p, { attr: true });
+result = Reflect.setPrototypeOf(p, {
+ attr: true
+});
assert.sameValue(result, true, "true");
assert.sameValue(called, 1, "true - isExtensible is called");
called = 0;
-result = Reflect.setPrototypeOf(p, { attr: "false" });
+result = Reflect.setPrototypeOf(p, {
+ attr: "false"
+});
assert.sameValue(result, true, "string");
assert.sameValue(called, 1, "string - isExtensible is called");
called = 0;
-result = Reflect.setPrototypeOf(p, { attr: 42 });
+result = Reflect.setPrototypeOf(p, {
+ attr: 42
+});
assert.sameValue(result, true, "42");
assert.sameValue(called, 1, "number - isExtensible is called");
called = 0;
-result = Reflect.setPrototypeOf(p, { attr: p });
+result = Reflect.setPrototypeOf(p, {
+ attr: p
+});
assert.sameValue(result, true, "p");
assert.sameValue(called, 1, "object - isExtensible is called");
called = 0;
-result = Reflect.setPrototypeOf(p, { attr: [] });
+result = Reflect.setPrototypeOf(p, {
+ attr: []
+});
assert.sameValue(result, true, "[]");
assert.sameValue(called, 1, "[] - isExtensible is called");
called = 0;
-result = Reflect.setPrototypeOf(p, { attr: Symbol(1) });
+result = Reflect.setPrototypeOf(p, {
+ attr: Symbol(1)
+});
assert.sameValue(result, true, "symbol");
assert.sameValue(called, 1, "symbol - isExtensible is called");