@@ -1917,6 +1917,7 @@ call_def_function(
19171917 // unlet a dict item, index must be a string
19181918 if (tv_idx -> v_type != VAR_STRING )
19191919 {
1920+ SOURCING_LNUM = iptr -> isn_lnum ;
19201921 semsg (_ (e_expected_str_but_got_str ),
19211922 vartype_name (VAR_STRING ),
19221923 vartype_name (tv_idx -> v_type ));
@@ -1935,6 +1936,7 @@ call_def_function(
19351936 if (di == NULL )
19361937 {
19371938 // NULL dict is equivalent to empty dict
1939+ SOURCING_LNUM = iptr -> isn_lnum ;
19381940 semsg (_ (e_dictkey ), key );
19391941 status = FAIL ;
19401942 }
@@ -1950,6 +1952,7 @@ call_def_function(
19501952 // unlet a List item, index must be a number
19511953 if (tv_idx -> v_type != VAR_NUMBER )
19521954 {
1955+ SOURCING_LNUM = iptr -> isn_lnum ;
19531956 semsg (_ (e_expected_str_but_got_str ),
19541957 vartype_name (VAR_NUMBER ),
19551958 vartype_name (tv_idx -> v_type ));
@@ -1964,6 +1967,7 @@ call_def_function(
19641967 li = list_find (l , n );
19651968 if (li == NULL )
19661969 {
1970+ SOURCING_LNUM = iptr -> isn_lnum ;
19671971 semsg (_ (e_listidx ), n );
19681972 status = FAIL ;
19691973 }
@@ -3129,6 +3133,7 @@ call_def_function(
31293133
31303134 case ISN_2STRING :
31313135 case ISN_2STRING_ANY :
3136+ SOURCING_LNUM = iptr -> isn_lnum ;
31323137 if (do_2string (STACK_TV_BOT (iptr -> isn_arg .number ),
31333138 iptr -> isn_type == ISN_2STRING_ANY ) == FAIL )
31343139 goto on_error ;
0 commit comments