mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
better deduce function name
This commit is contained in:
@@ -459,6 +459,14 @@ export const tests = [
|
||||
)
|
||||
}),
|
||||
|
||||
test('function name from object literal', () => {
|
||||
const i = test_initial_state(`
|
||||
const fns = {x: () => 1}
|
||||
fns.x()
|
||||
`)
|
||||
assert_equal(root_calltree_node(i).children[0].fn.name, 'x')
|
||||
}),
|
||||
|
||||
test('function name', () => {
|
||||
// TODO
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user