☰
Debian Codegraph
@
8.0.6+ds1+~cs177.303.116-1
8.0.4+ds1+~cs177.303.116-3
7.20.15+ds1+~cs214.269.168-17
/
/
packages
/
babel-plugin-transform-arrow-functions
/
test
/
fixtures
/
assumption-newableArrowFunctions-false
/
self-referential
/
input.js
☽
☼
packages/babel-plugin-transform-arrow-functions/test/fixtures/assumption-newableArrowFunctions-false/self-referential/input.js
code
plain
raw
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
1
var fooCalls = []
2
var jumpTable = (name, arg) => { if (jumpTable[name]) { jumpTable[name](arg) } }
3
Object.assign(jumpTable, { foo (arg) { fooCalls.push(arg) } });
4
jumpTable('foo', 'bar')
5
6
expect(fooCalls[0]).toBe('bar');