Debian Codegraph @

packages/babel-plugin-transform-computed-properties/test/fixtures/assumption-setComputedProperties/symbol/exec.js

raw
1 var k = Symbol();
2 var foo = {
3 [Symbol.iterator]: "foobar",
4 get [k]() {
5 return k;
6 }
7 };
8
9 expect(foo[Symbol.iterator]).toBe("foobar")
10 expect(foo[k]).toBe(k)