Mercurial > pub > ImplabJs
changeset 14:5fd2a35d65c0
Слияние
author | cin |
---|---|
date | Fri, 08 Sep 2017 13:45:10 +0300 |
parents | 3d4abbce4afc (diff) 23be39fd3851 (current diff) |
children | b85df31b7e0e |
files | |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/implab/safe.js Thu Aug 24 04:30:11 2017 +0300 +++ b/src/implab/safe.js Fri Sep 08 13:45:10 2017 +0300 @@ -175,12 +175,10 @@ } } - return /** @this */ function () { - try { - return wrapresult(fn.apply(this, arguments)); - } catch (e) { - return wrapresult(null, e); - } + try { + return wrapresult(fn.apply(thisArg, arguments)); + } catch (e) { + return wrapresult(null, e); }; },