aboutsummaryrefslogtreecommitdiffstats
path: root/test/built-ins/Proxy/has
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Proxy/has')
-rw-r--r--test/built-ins/Proxy/has/call-in.js12
-rw-r--r--test/built-ins/Proxy/has/call-object-create.js12
-rw-r--r--test/built-ins/Proxy/has/call-with.js16
-rw-r--r--test/built-ins/Proxy/has/null-handler-using-with.js6
-rw-r--r--test/built-ins/Proxy/has/null-handler.js2
-rw-r--r--test/built-ins/Proxy/has/return-false-target-not-extensible-using-with.js16
-rw-r--r--test/built-ins/Proxy/has/return-false-target-not-extensible.js12
-rw-r--r--test/built-ins/Proxy/has/return-false-target-prop-exists-using-with.js12
-rw-r--r--test/built-ins/Proxy/has/return-false-target-prop-exists.js8
-rw-r--r--test/built-ins/Proxy/has/return-false-targetdesc-not-configurable-using-with.js16
-rw-r--r--test/built-ins/Proxy/has/return-false-targetdesc-not-configurable.js12
-rw-r--r--test/built-ins/Proxy/has/return-is-abrupt-in.js8
-rw-r--r--test/built-ins/Proxy/has/return-is-abrupt-with.js12
-rw-r--r--test/built-ins/Proxy/has/return-true-target-prop-exists-using-with.js14
-rw-r--r--test/built-ins/Proxy/has/return-true-target-prop-exists.js8
-rw-r--r--test/built-ins/Proxy/has/return-true-without-same-target-prop.js6
-rw-r--r--test/built-ins/Proxy/has/trap-is-not-callable-using-with.js8
-rw-r--r--test/built-ins/Proxy/has/trap-is-not-callable.js4
-rw-r--r--test/built-ins/Proxy/has/trap-is-undefined-using-with.js6
19 files changed, 95 insertions, 95 deletions
diff --git a/test/built-ins/Proxy/has/call-in.js b/test/built-ins/Proxy/has/call-in.js
index 1bdc92772..f51d824db 100644
--- a/test/built-ins/Proxy/has/call-in.js
+++ b/test/built-ins/Proxy/has/call-in.js
@@ -15,13 +15,13 @@ info: |
var _handler, _target, _prop;
var target = {};
var handler = {
- has: function(t, prop) {
- _handler = this;
- _target = t;
- _prop = prop;
+ has: function(t, prop) {
+ _handler = this;
+ _target = t;
+ _prop = prop;
- return prop in t;
- }
+ return prop in t;
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/has/call-object-create.js b/test/built-ins/Proxy/has/call-object-create.js
index 9b80cad11..4bcbe2ca5 100644
--- a/test/built-ins/Proxy/has/call-object-create.js
+++ b/test/built-ins/Proxy/has/call-object-create.js
@@ -20,13 +20,13 @@ info: |
var _handler, _target, _prop;
var target = {};
var handler = {
- has: function(t, prop) {
- _handler = this;
- _target = t;
- _prop = prop;
+ has: function(t, prop) {
+ _handler = this;
+ _target = t;
+ _prop = prop;
- return false;
- }
+ return false;
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/has/call-with.js b/test/built-ins/Proxy/has/call-with.js
index 59e567ffc..1efe91f2c 100644
--- a/test/built-ins/Proxy/has/call-with.js
+++ b/test/built-ins/Proxy/has/call-with.js
@@ -16,18 +16,18 @@ flags: [noStrict]
var _handler, _target, _prop;
var target = {};
var handler = {
- has: function(t, prop) {
- _handler = this;
- _target = t;
- _prop = prop;
+ has: function(t, prop) {
+ _handler = this;
+ _target = t;
+ _prop = prop;
- return true;
- }
+ return true;
+ }
};
var p = new Proxy(target, handler);
-with (p) {
- (attr);
+with(p) {
+ (attr);
}
assert.sameValue(_handler, handler);
diff --git a/test/built-ins/Proxy/has/null-handler-using-with.js b/test/built-ins/Proxy/has/null-handler-using-with.js
index 06bd4eaf0..68320160b 100644
--- a/test/built-ins/Proxy/has/null-handler-using-with.js
+++ b/test/built-ins/Proxy/has/null-handler-using-with.js
@@ -12,7 +12,7 @@ var p = Proxy.revocable({}, {});
p.revoke();
assert.throws(TypeError, function() {
- with (p.proxy) {
- (attr);
- }
+ with(p.proxy) {
+ (attr);
+ }
});
diff --git a/test/built-ins/Proxy/has/null-handler.js b/test/built-ins/Proxy/has/null-handler.js
index 90deca388..8cc5d8ea3 100644
--- a/test/built-ins/Proxy/has/null-handler.js
+++ b/test/built-ins/Proxy/has/null-handler.js
@@ -11,5 +11,5 @@ var p = Proxy.revocable({}, {});
p.revoke();
assert.throws(TypeError, function() {
- "attr" in p.proxy;
+ "attr" in p.proxy;
});
diff --git a/test/built-ins/Proxy/has/return-false-target-not-extensible-using-with.js b/test/built-ins/Proxy/has/return-false-target-not-extensible-using-with.js
index 5847413a2..fb3e6f463 100644
--- a/test/built-ins/Proxy/has/return-false-target-not-extensible-using-with.js
+++ b/test/built-ins/Proxy/has/return-false-target-not-extensible-using-with.js
@@ -23,21 +23,21 @@ flags: [noStrict]
var target = {};
var handler = {
- has: function(t, prop) {
- return 0;
- }
+ has: function(t, prop) {
+ return 0;
+ }
};
var p = new Proxy(target, handler);
Object.defineProperty(target, 'attr', {
- configurable: true,
- value: 1
+ configurable: true,
+ value: 1
});
Object.preventExtensions(target);
assert.throws(TypeError, function() {
- with (p) {
- (attr);
- }
+ with(p) {
+ (attr);
+ }
});
diff --git a/test/built-ins/Proxy/has/return-false-target-not-extensible.js b/test/built-ins/Proxy/has/return-false-target-not-extensible.js
index b1f9c5190..dc5e3a3b9 100644
--- a/test/built-ins/Proxy/has/return-false-target-not-extensible.js
+++ b/test/built-ins/Proxy/has/return-false-target-not-extensible.js
@@ -22,19 +22,19 @@ info: |
var target = {};
var handler = {
- has: function(t, prop) {
- return 0;
- }
+ has: function(t, prop) {
+ return 0;
+ }
};
var p = new Proxy(target, handler);
Object.defineProperty(target, "attr", {
- configurable: true,
- value: 1
+ configurable: true,
+ value: 1
});
Object.preventExtensions(target);
assert.throws(TypeError, function() {
- "attr" in p;
+ "attr" in p;
});
diff --git a/test/built-ins/Proxy/has/return-false-target-prop-exists-using-with.js b/test/built-ins/Proxy/has/return-false-target-prop-exists-using-with.js
index d008f1ad2..cb7ebd738 100644
--- a/test/built-ins/Proxy/has/return-false-target-prop-exists-using-with.js
+++ b/test/built-ins/Proxy/has/return-false-target-prop-exists-using-with.js
@@ -14,15 +14,15 @@ flags: [noStrict]
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {
- has: function(t, prop) {
- return false;
- }
+ has: function(t, prop) {
+ return false;
+ }
});
var attr = 0;
-with (p) {
- assert.sameValue(attr, 0);
+with(p) {
+ assert.sameValue(attr, 0);
}
diff --git a/test/built-ins/Proxy/has/return-false-target-prop-exists.js b/test/built-ins/Proxy/has/return-false-target-prop-exists.js
index 7a74041c4..52bc88f4f 100644
--- a/test/built-ins/Proxy/has/return-false-target-prop-exists.js
+++ b/test/built-ins/Proxy/has/return-false-target-prop-exists.js
@@ -13,12 +13,12 @@ info: |
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {
- has: function(t, prop) {
- return false;
- }
+ has: function(t, prop) {
+ return false;
+ }
});
assert.sameValue(("attr" in p), false);
diff --git a/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable-using-with.js b/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable-using-with.js
index 43c59aa01..a6a551709 100644
--- a/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable-using-with.js
+++ b/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable-using-with.js
@@ -20,19 +20,19 @@ flags: [noStrict]
var target = {};
var handler = {
- has: function(t, prop) {
- return 0;
- }
+ has: function(t, prop) {
+ return 0;
+ }
};
var p = new Proxy(target, handler);
Object.defineProperty(target, "attr", {
- configurable: false,
- value: 1
+ configurable: false,
+ value: 1
});
assert.throws(TypeError, function() {
- with (p) {
- (attr);
- }
+ with(p) {
+ (attr);
+ }
});
diff --git a/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable.js b/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable.js
index 581a4113f..71f882c22 100644
--- a/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable.js
+++ b/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable.js
@@ -19,17 +19,17 @@ info: |
var target = {};
var handler = {
- has: function(t, prop) {
- return 0;
- }
+ has: function(t, prop) {
+ return 0;
+ }
};
var p = new Proxy(target, handler);
Object.defineProperty(target, "attr", {
- configurable: false,
- value: 1
+ configurable: false,
+ value: 1
});
assert.throws(TypeError, function() {
- "attr" in p;
+ "attr" in p;
});
diff --git a/test/built-ins/Proxy/has/return-is-abrupt-in.js b/test/built-ins/Proxy/has/return-is-abrupt-in.js
index d7a7c5a4b..9e42c2d05 100644
--- a/test/built-ins/Proxy/has/return-is-abrupt-in.js
+++ b/test/built-ins/Proxy/has/return-is-abrupt-in.js
@@ -14,11 +14,11 @@ info: |
---*/
var p = new Proxy({}, {
- has: function() {
- throw new Test262Error();
- }
+ has: function() {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- "attr" in p;
+ "attr" in p;
});
diff --git a/test/built-ins/Proxy/has/return-is-abrupt-with.js b/test/built-ins/Proxy/has/return-is-abrupt-with.js
index 46824ac2d..e4ff88601 100644
--- a/test/built-ins/Proxy/has/return-is-abrupt-with.js
+++ b/test/built-ins/Proxy/has/return-is-abrupt-with.js
@@ -15,13 +15,13 @@ flags: [noStrict]
---*/
var p = new Proxy({}, {
- has: function() {
- throw new Test262Error();
- }
+ has: function() {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- with (p) {
- (attr);
- }
+ with(p) {
+ (attr);
+ }
});
diff --git a/test/built-ins/Proxy/has/return-true-target-prop-exists-using-with.js b/test/built-ins/Proxy/has/return-true-target-prop-exists-using-with.js
index 145073b72..1e58f30f7 100644
--- a/test/built-ins/Proxy/has/return-true-target-prop-exists-using-with.js
+++ b/test/built-ins/Proxy/has/return-true-target-prop-exists-using-with.js
@@ -9,17 +9,17 @@ flags: [noStrict]
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {
- has: function(t, prop) {
- if (prop !== "assert") {
- return 42;
- }
+ has: function(t, prop) {
+ if (prop !== "assert") {
+ return 42;
}
+ }
});
var attr = 0;
-with (p) {
- assert.sameValue(attr, 1);
+with(p) {
+ assert.sameValue(attr, 1);
}
diff --git a/test/built-ins/Proxy/has/return-true-target-prop-exists.js b/test/built-ins/Proxy/has/return-true-target-prop-exists.js
index 9c5a409da..187ef0030 100644
--- a/test/built-ins/Proxy/has/return-true-target-prop-exists.js
+++ b/test/built-ins/Proxy/has/return-true-target-prop-exists.js
@@ -8,12 +8,12 @@ description: >
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {
- has: function(t, prop) {
- return 1;
- }
+ has: function(t, prop) {
+ return 1;
+ }
});
assert.sameValue(("attr" in p), true);
diff --git a/test/built-ins/Proxy/has/return-true-without-same-target-prop.js b/test/built-ins/Proxy/has/return-true-without-same-target-prop.js
index 9186074a7..5ee560de8 100644
--- a/test/built-ins/Proxy/has/return-true-without-same-target-prop.js
+++ b/test/built-ins/Proxy/has/return-true-without-same-target-prop.js
@@ -8,9 +8,9 @@ description: >
---*/
var p = new Proxy({}, {
- has: function(t, prop) {
- return true;
- }
+ has: function(t, prop) {
+ return true;
+ }
});
assert.sameValue(("attr" in p), true);
diff --git a/test/built-ins/Proxy/has/trap-is-not-callable-using-with.js b/test/built-ins/Proxy/has/trap-is-not-callable-using-with.js
index 1153bd364..951ebcf43 100644
--- a/test/built-ins/Proxy/has/trap-is-not-callable-using-with.js
+++ b/test/built-ins/Proxy/has/trap-is-not-callable-using-with.js
@@ -20,11 +20,11 @@ flags: [noStrict]
var target = {};
var p = new Proxy(target, {
- has: {}
+ has: {}
});
assert.throws(TypeError, function() {
- with (p) {
- (attr);
- }
+ with(p) {
+ (attr);
+ }
});
diff --git a/test/built-ins/Proxy/has/trap-is-not-callable.js b/test/built-ins/Proxy/has/trap-is-not-callable.js
index 712419824..63f494357 100644
--- a/test/built-ins/Proxy/has/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/has/trap-is-not-callable.js
@@ -19,9 +19,9 @@ info: |
var target = {};
var p = new Proxy(target, {
- has: {}
+ has: {}
});
assert.throws(TypeError, function() {
- "attr" in p;
+ "attr" in p;
});
diff --git a/test/built-ins/Proxy/has/trap-is-undefined-using-with.js b/test/built-ins/Proxy/has/trap-is-undefined-using-with.js
index 26a98bebb..4c3ec37c2 100644
--- a/test/built-ins/Proxy/has/trap-is-undefined-using-with.js
+++ b/test/built-ins/Proxy/has/trap-is-undefined-using-with.js
@@ -18,7 +18,7 @@ var target = Object.create(Array.prototype);
var p = new Proxy(target, {});
var foo = 3;
-with (target) {
- assert.sameValue(length, 0);
- assert.sameValue(foo, 3);
+with(target) {
+ assert.sameValue(length, 0);
+ assert.sameValue(foo, 3);
}