]> granicus.if.org Git - vim/commitdiff
patch 8.2.1753: Vim9: crash when using import at script level v8.2.1753
authorBram Moolenaar <Bram@vim.org>
Sun, 27 Sep 2020 11:51:14 +0000 (13:51 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 27 Sep 2020 11:51:14 +0000 (13:51 +0200)
Problem:    Vim9: crash when using import at script level.
Solution:   Give a "not implemented yet" error. (closes #7026)

src/evalvars.c
src/version.c

index 087a0cbdb98ac4e5c568e715cb218461dc77c128..3571169370c8f389a0687dc4985ac698d99cbaf9 100644 (file)
@@ -2486,6 +2486,11 @@ eval_variable(
                    rettv->vval.v_string = vim_strsave(import->imp_funcname);
                }
            }
+           else if (import->imp_all)
+           {
+               emsg("Sorry, 'import * as X' not implemented yet");
+               ret = FAIL;
+           }
            else
            {
                scriptitem_T    *si = SCRIPT_ITEM(import->imp_sid);
index 149a3ff212bc3988f26edecd4ca2980be79d3ae1..f3dbf2808aba0ef55a43cb357fa12f121539e5a5 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1753,
 /**/
     1752,
 /**/