BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / Object_static_methods_Object.getOwnPropertySymbols.js
1 function test() {
2
3 var o = {};
4 var sym = Symbol(), sym2 = Symbol(), sym3 = Symbol();
5 o[sym]  = true;
6 o[sym2] = true;
7 o[sym3] = true;
8 var result = Object.getOwnPropertySymbols(o);
9 return result[0] === sym
10   && result[1] === sym2
11   && result[2] === sym3;
12       
13 }
14
15 if (!test())
16     throw new Error("Test failed");
17