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

Unified Diff: test/mjsunit/harmony/proxies-hash.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: adding proxy trap strings 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
Index: test/mjsunit/harmony/proxies-hash.js
diff --git a/test/mjsunit/harmony/proxies-hash.js b/test/mjsunit/harmony/proxies-hash.js
index 65d2d3c5646cdbb2188a439407f30ee536795a87..5cd1baa54785454ae242fd15d40d3c50a3d8113d 100644
--- a/test/mjsunit/harmony/proxies-hash.js
+++ b/test/mjsunit/harmony/proxies-hash.js
@@ -31,7 +31,7 @@
// Helper.
function TestWithProxies(test, construct, handler) {
- test(construct, handler, Proxy.create)
+ test(construct, handler, function(h){ return new Proxy({},h)} )
Jakob Kummerow 2015/11/12 12:04:24 nit: spaces between '){', ',h', and ')}'
test(construct, handler, function(h) {
return Proxy.createFunction(h, function() {})
})

Powered by Google App Engine
This is Rietveld 408576698