summaryrefslogtreecommitdiff
path: root/test/built-ins/Proxy/revocable
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Proxy/revocable')
-rw-r--r--test/built-ins/Proxy/revocable/proxy.js8
-rw-r--r--test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js4
2 files changed, 7 insertions, 5 deletions
diff --git a/test/built-ins/Proxy/revocable/proxy.js b/test/built-ins/Proxy/revocable/proxy.js
index b08d73c2e..32d4c27cd 100644
--- a/test/built-ins/Proxy/revocable/proxy.js
+++ b/test/built-ins/Proxy/revocable/proxy.js
@@ -12,12 +12,12 @@ info: |
---*/
var target = {
- attr: "foo"
+ attr: "foo"
};
var r = Proxy.revocable(target, {
- get: function(t, prop) {
- return t[prop] + "!";
- }
+ get: function(t, prop) {
+ return t[prop] + "!";
+ }
});
assert.sameValue(r.proxy.attr, "foo!");
diff --git a/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js b/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js
index 02fc9aa5c..1dd225538 100644
--- a/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js
+++ b/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js
@@ -14,4 +14,6 @@ info: |
var revocationFunction = Proxy.revocable({}, {}).revoke;
assert.sameValue(Object.prototype.hasOwnProperty.call(revocationFunction, "prototype"), false);
-assert.throws(TypeError, function() { new revocationFunction(); });
+assert.throws(TypeError, function() {
+ new revocationFunction();
+});