Age | Commit message (Collapse) | Author |
|
Problem: Vim9: no need to keep all script variables.
Solution: Only keep script variables when a function was defined that could
use them. Fix freeing static string on exit.
|
|
Problem: Vim9: crash in unpack assignment.
Solution: Make sure an error message is turned into an exception.
(closes #7159)
|
|
Problem: Vim9: crash when throwing exception for NULL string. (Dhiraj
Mishra)
Solution: Handle NULL string like empty string. (closes #7139)
|
|
Problem: Vim9: garbage collection frees block-local variables.
Solution: Mark all script variables as used.
|
|
Problem: Vim9: variables declared in a local block are not found in
when a function is compiled.
Solution: Look for script variables in sn_all_vars.
|
|
Problem: Vim9: cannot use a {} block at script level.
Solution: Recognize a {} block.
|
|
Problem: Vim9: variables at the script level escape their scope.
Solution: When leaving a scope remove variables declared in it.
|
|
Problem: Vim9: can assign wrong type to script dict. (Christian J. Robinson)
Solution: Check the type if known.
|
|
Problem: Vim9: trinary operator condition is too permissive.
Solution: Use tv_get_bool_chk().
|
|
Problem: Vim9: some assignment tests in the wrong file.
Solution: Move assignment tests to test_vim9_assign.
|
|
Problem: Vim9: Some tests are still using :let.
Solution: Change the last few declarations to use :var.
|
|
Problem: Vim9: :let will soon be disallowed.
Solution: Add v:disallow_let temporarily. Fix tests.
|
|
Problem: Vim9: Cannot use "fina" for "finally". (Naruhiko Nishino)
Solution: Specifically check for "fina". (closes #7020)
|
|
Problem: Vim9: using ":const!" is weird.
Solution: Use "var" - "final" - "const" like Dart. "let" still works for
now.
|
|
Problem: Test still fails without the terminal feature.
Solution: Put check for terminal feature in separate function.
|
|
Problem: Test fails without the terminal feature.
Solution: Skip test if the terminal feature is not available.
|
|
Problem: Vim9: crash when compiling a manually defined function. (Antony
Scriven)
Solution: Check that the script ID is positive. (closes #7012)
|
|
Problem: Vim9: assignment tests spread out.
Solution: Create new test file for assignment tests.
|
|
Problem: Vim9: memory leak with heredoc that isn't executed. (Dominique
Pellé)
Solution: Don't clear the list items. (closes #6991)
|
|
Problem: Vim9: crash in for loop when autoload script has an error.
Solution: Reset suppress_errthrow. Check for NULL list. (closes #6967)
|
|
Problem: Vim9: try/catch causes wrong value to be returned.
Solution: Reset tcd_return. (closes #6964)
|
|
Problem: Inconsistent capitalization of error messages.
Solution: Always start with a capital.
|
|
Problem: Vim9: list<any> is not accepted where list<number> is expected.
Solution: Add functions to allocate and free a type_T, use it in
ISN_CHECKTYPE. (closes #6959)
|
|
Problem: Vim9: "const!" not sufficiently tested.
Solution: Add a few more test cases. Fix type checking.
|
|
Problem: Vim9: cannot declare a constant value.
Solution: Introduce ":const!".
|
|
Problem: Vim9: const works in an unexpected way.
Solution: ":const" only disallows changing the variable, not the value.
Make "list[0] = 9" work at the script level.
|
|
Problem: Vim9: unnessary :call commands in tests.
Solution: Remove the commands. (issue #6936)
|
|
Problem: Vim9: internal error when using variable that was not set.
Solution: Give a meaningful error. (closes #6937)
|
|
Problem: Vim9: result of && and || expression cannot be assigned to a bool
at the script level.
Solution: Add the VAR_BOOL_OK flag. Convert to bool when needed.
|
|
Problem: Vim9: result of expression with && and || cannot be assigned to a
bool variable.
Solution: Add the TTFLAG_BOOL_OK flag and convert the value if needed.
|
|
Problem: Vim9: cannot assign 1 and 0 to bool at script level.
Solution: Add the TTFLAG_BOOL_OK flag to the type. Fix name of test
function.
|
|
Problem: Vim9: cannot use 0 or 1 where a bool is expected.
Solution: Allow using 0 and 1 for a bool type. (closes #6903)
|
|
Problem: Not checking the context of test_fails().
Solution: Add the line number and context arguments. Give error if
assert_fails() argument types are wrong.
|
|
Problem: Vim9: using :call where it is not needed.
Solution: Remove :call. (closes #6892)
|
|
Problem: Tests do not check the error number properly.0
Solution: Add a colon after the error number. (closes #6869)
|
|
Problem: Vim9: test with invalid SID is skipped in the GUI.
Solution: Read the CTRL-C that feedkeys() put in typeahead.
|
|
Problem: Vim9: test with invalid SID does not work in the GUI.
Solution: Skip the test in the GUI.
|
|
Problem: Vim9: cannot find function reference for s:Func.
Solution: Recognize <SNR> prefix. (closes #6805)
|
|
Problem: Using invalid script ID causes a crash.
Solution: Check the script ID to be valid. (closes #6804)
|
|
Problem: Vim9: :endif not found after "if false".
Solution: When skipping still check for a following command. (closes #6797)
|
|
Problem: Vim9: cannot use a function name as a function reference at script
level.
Solution: Check if a name is a function name. (closes #6789)
|
|
Problem: Vim9: Ex command default range is not set.
Solution: When range is not given use default. (closes #6779)
|
|
Problem: Vim9: cannot assign to local option.
Solution: Skip over "&l:" and "&g:". (closes #6749)
|
|
Problem: Vim9: error for :exe has wrong line number.
Solution: Set line number before calling do_cmdline_cmd(). (closes #6774)
|
|
Problem: Vim9: can create s:var in legacy script but cannot unlet.
Solution: Allow :unlet for legacy script var.
|
|
Problem: Vim9: error for an autocmd defined in a :def function in legacy
Vim script.
Solution: Don't check the variable type. (closes #6758)
|
|
Problem: Vim9: can use += with a :let command at script level.
Solution: Give an error.
|
|
Problem: Vim9: error when using address without a command.
Solution: Execute the range itself. (closes #6747)
|
|
Problem: Vim9: crash when compiling heredoc lines start with comment.
Solution: Skip over NULL pointers. Do not remove comment and empty lines
when fetching function lines. (closes #6743)
|
|
Problem: Vim9: using /= with float and number doesn't work.
Solution: Better support assignment with operator. (closes #6742)
|