select_error in native fns

This commit is contained in:
Dmitry Vasilev
2023-10-31 10:31:16 +08:00
parent 84ed01dbf2
commit d35ae9ae59
2 changed files with 25 additions and 1 deletions

View File

@@ -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
)
)
)