mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
select_error in native fns
This commit is contained in:
@@ -851,7 +851,14 @@ const select_error = state => {
|
||||
const error_origin = find_node(node, n =>
|
||||
has_error(n)
|
||||
&& (
|
||||
n.children == null || n.children.every(c => !has_error(c))
|
||||
n.children == null
|
||||
||
|
||||
n.children.every(c =>
|
||||
!has_error(c)
|
||||
||
|
||||
// Error in native fn
|
||||
is_native_fn(c) && c.children == null
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user