Mercurial > vim
diff src/vim9execute.c @ 24112:0346a59ed5bf v8.2.2597
patch 8.2.2597: Vim9: "import * as" does not work at script level
Commit: https://github.com/vim/vim/commit/cb4e80fab9b1ee67249bde4f784526f900cda70c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 13 20:57:19 2021 +0100
patch 8.2.2597: Vim9: "import * as" does not work at script level
Problem: Vim9: "import * as" does not work at script level.
Solution: Implement using an imported namespace.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 Mar 2021 21:00:03 +0100 |
parents | 5006d95ef82d |
children | e8b21a3bb0d5 |
line wrap: on
line diff
--- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -1765,7 +1765,7 @@ call_def_function( goto failed; SOURCING_LNUM = iptr->isn_lnum; if (eval_variable(name, (int)STRLEN(name), - STACK_TV_BOT(0), NULL, TRUE, FALSE) == FAIL) + STACK_TV_BOT(0), NULL, EVAL_VAR_VERBOSE) == FAIL) goto on_error; ++ectx.ec_stack.ga_len; }