polyfill Promise with bluebird

This commit is contained in:
Brian Vanderbusch 2016-07-04 19:28:06 -05:00
parent 2a5fe2c382
commit b317f3f900
2 changed files with 7 additions and 5 deletions

View file

@ -3,9 +3,10 @@ CommandError = require './command-error'
fs = require 'fs-plus'
VimOption = require './vim-option'
_ = require 'underscore-plus'
Promise = require 'bluebird'
trySave = (func) ->
deferred = Promise.defer()
deferred = Promise.defer()
try
func()