Index: test/mjsunit/es6/proxies-keys.js |
diff --git a/test/mjsunit/es6/proxies-keys.js b/test/mjsunit/es6/proxies-keys.js |
index 7344032aaf874032d608884747bb3d615939b73e..65dea6a5992c2debe1a141bcf60af621c7e4ea41 100644 |
--- a/test/mjsunit/es6/proxies-keys.js |
+++ b/test/mjsunit/es6/proxies-keys.js |
@@ -37,3 +37,14 @@ assertThrows("Object.keys(proxy)", Number); |
handler.ownKeys = undefined; |
assertEquals(["target"], Object.keys(proxy)); |
assertEquals(["target"], Object.keys(target)); |
+ |
+var proxy2 = new Proxy(proxy, {}); |
+assertEquals(["target"], Object.keys(proxy2)); |
+ |
+ |
+(function testForSymbols() { |
+ var symbol = Symbol(); |
+ var p = new Proxy({}, {ownKeys() { return ["1", symbol, "2"] }}); |
+ assertEquals(["1","2"], Object.getOwnPropertyNames(p)); |
+ assertEquals([symbol], Object.getOwnPropertySymbols(p)); |
+})(); |