Release assert with <img usemap> in shadow tree
[WebKit-https.git] / JSTests / es6 / function_name_property_symbol-keyed_methods.js
1 function test() {
2
3 var sym1 = Symbol("foo");
4 var sym2 = Symbol();
5 var o = {
6   [sym1]: function(){},
7   [sym2]: function(){}
8 };
9
10 return o[sym1].name === "[foo]" &&
11        o[sym2].name === "";
12       
13 }
14
15 if (!test())
16     throw new Error("Test failed");
17