fix deferred call bug

This commit is contained in:
Dmitry Vasilev
2024-03-02 12:45:56 +08:00
parent 62407ec86b
commit 810e6178f8
3 changed files with 10 additions and 6 deletions

View File

@@ -166,7 +166,7 @@ export const input_async = async (s, code, index, options) => {
}
}
export const test_deferred_calls_state = code => {
export const test_deferred_calls_state = (code, index) => {
const {get_deferred_call, on_deferred_call} = (new Function(`
let args
return {
@@ -179,7 +179,7 @@ export const test_deferred_calls_state = code => {
}
`))()
const state = test_initial_state(code, null, { on_deferred_call })
const state = test_initial_state(code, index, { on_deferred_call })
return {
state,