Index: test/mjsunit/harmony/proxies-with.js |
diff --git a/test/mjsunit/harmony/proxies-with.js b/test/mjsunit/harmony/proxies-with.js |
index 94de25e3ea7fa1690bea5535bdab0beb963c1be9..9c18373863c02fcbec7dac32e8d64ce6bad27437 100644 |
--- a/test/mjsunit/harmony/proxies-with.js |
+++ b/test/mjsunit/harmony/proxies-with.js |
@@ -31,8 +31,10 @@ |
// Helper. |
function TestWithProxies(test, x, y, z) { |
- test(Proxy.create, x, y, z) |
- test(function(h) {return Proxy.createFunction(h, function() {})}, x, y, z) |
+ test(function(h) { return new Proxy({}, h) }, x, y, z) |
+ test(function(h) { |
+ return Proxy.createFunction(h, function() {}) |
+ }, x, y, z) |
} |
@@ -66,7 +68,10 @@ function TestWithGet2(create, handler) { |
} |
TestWithGet({ |
- get: function(r, k) { key = k; return k === "a" ? "onproxy" : undefined }, |
+ get: function(r, k) { |
+ key = k; |
+ return k === "a" ? "onproxy" : undefined |
+ }, |
getPropertyDescriptor: function(k) { |
key = k; |
return k === "a" ? {value: "onproxy", configurable: true} : undefined |