Mercurial > vim
view runtime/compiler/rhino.vim @ 31750:13cecb002fe6 v9.0.1207
patch 9.0.1207: error when object type is expected but getting "any"
Commit: https://github.com/vim/vim/commit/450c7a97d1a28f715acaf562298112b9b932adc3
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 16 16:39:37 2023 +0000
patch 9.0.1207: error when object type is expected but getting "any"
Problem: Error when object type is expected but getting "any".
Solution: When actual type is "any" use a runtime type check.
(closes #11826)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 16 Jan 2023 17:45:02 +0100 |
parents | d4c7b3e9cd17 |
children | e1df51f68736 |
line wrap: on
line source
" Vim compiler file " Compiler: Rhino Shell (JavaScript in Java) " Maintainer: Doug Kearns <dougkearns@gmail.com> " Last Change: 2019 Jul 10 if exists("current_compiler") finish endif let current_compiler = "rhino" if exists(":CompilerSet") != 2 " older Vim always used :setlocal command -nargs=* CompilerSet setlocal <args> endif let s:cpo_save = &cpo set cpo&vim " CompilerSet makeprg=java\ -jar\ lib/rhino-X.X.XX.jar\ -w\ -strict CompilerSet makeprg=rhino CompilerSet errorformat=%-Gjs:\ %.%#Compilation\ produced%.%#, \%Ejs:\ \"%f\"\\,\ line\ %l:\ %m, \%Ejs:\ uncaught\ JavaScript\ runtime\ exception:\ %m, \%Wjs:\ warning:\ \"%f\"\\,\ line\ %l:\ %m, \%Zjs:\ %p^, \%Cjs:\ %.%#, \%-G%.%# let &cpo = s:cpo_save unlet s:cpo_save