mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
fix bug
This commit is contained in:
12
test/test.js
12
test/test.js
@@ -4320,6 +4320,18 @@ const y = x()`
|
||||
)
|
||||
}),
|
||||
|
||||
test('let_versions assign to let variable', () => {
|
||||
const code = `
|
||||
let result = 0
|
||||
function unused() {
|
||||
result = 2
|
||||
}
|
||||
result = 1
|
||||
`
|
||||
const i = test_initial_state(code, code.indexOf('result = 1'))
|
||||
assert_value_explorer(i, 1)
|
||||
}),
|
||||
|
||||
test('let_versions', () => {
|
||||
const code = `
|
||||
let x
|
||||
|
||||
Reference in New Issue
Block a user