refactor tests

This commit is contained in:
Dmitry Vasilev
2023-12-20 20:16:42 +08:00
parent de40cc9b8a
commit 212179b788
3 changed files with 58 additions and 67 deletions

View File

@@ -709,6 +709,10 @@ const get_value_explorer = (state, index) => {
if(frame.type == 'function_expr' && frame.body.type != 'do') {
const result = frame.children[1].result
if(result == null) {
// Error in arguments, body not evaluated
return null
}
return {
index: frame.children[1].index,
length: frame.children[1].length,