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

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

Issue 1517463002: [runtime] [proxies] adding tests for uncovered branches (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: dropping mips changes Created 5 years 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-define-property.js ('k') | test/mjsunit/harmony/proxies-set-prototype-of.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/proxies-enumerate.js
diff --git a/test/mjsunit/harmony/proxies-enumerate.js b/test/mjsunit/harmony/proxies-enumerate.js
index 87eb554fcb115542c543486c8a93c5c497ebffeb..0da706d9e101f0814ba5c0dab2ed4f815fa78b67 100644
--- a/test/mjsunit/harmony/proxies-enumerate.js
+++ b/test/mjsunit/harmony/proxies-enumerate.js
@@ -37,6 +37,12 @@ function TestForIn(receiver, expected) {
TestForIn(proxy, ["foo", "bar"]);
+// Test revoked proxy.
+var pair = Proxy.revocable(target, handler);
+TestForIn(pair.proxy, ["foo", "bar"]);
+pair.revoke();
+assertThrows(()=>{ TestForIn(pair.proxy, ["foo", "bar"]) }, TypeError);
+
// Properly call traps on proxies on the prototype chain.
var receiver = {
"receiver_one": 1
« no previous file with comments | « test/mjsunit/harmony/proxies-define-property.js ('k') | test/mjsunit/harmony/proxies-set-prototype-of.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698