Skip to content

Commit 5699022

Browse files
authored
Merge pull request #734 from hrsh7th/fix-promise-on-unhandled-rejection
Fix throws error on on_unhandled_rejection Closed #733
2 parents cfb2767 + 19bb12a commit 5699022

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

autoload/vital/__vital__/Async/Promise.vim

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,8 @@ function! s:_vital_depends() abort
2626
return ['Async.Later']
2727
endfunction
2828

29-
" @vimlint(EVL103, 1, a:resolve)
30-
" @vimlint(EVL103, 1, a:reject)
31-
function! s:noop(resolve, reject) abort
29+
function! s:noop(...) abort
3230
endfunction
33-
" @vimlint(EVL103, 0, a:resolve)
34-
" @vimlint(EVL103, 0, a:reject)
3531
let s:NOOP = funcref('s:noop')
3632

3733
" Internal APIs

0 commit comments

Comments
 (0)