Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(698)

Unified Diff: test/mjsunit/harmony/proxies-with.js

Issue 1417063011: [runtime] support new Proxy() instead of Proxy.create and install getPrototypeOf trap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removing unreachable code Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/harmony/proxies-symbols.js ('k') | test/mjsunit/harmony/proxies-with-unscopables.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « test/mjsunit/harmony/proxies-symbols.js ('k') | test/mjsunit/harmony/proxies-with-unscopables.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698