# HG changeset patch # User cin # Date 1504867510 -10800 # Node ID 5fd2a35d65c0d5191d0ef9d453639326a66e8a56 # Parent 3d4abbce4afcf66269d20fedec88bf91aa43c7cc# Parent 23be39fd385119d1d22b412f37f48b61b2cbbfed Слияние diff -r 23be39fd3851 -r 5fd2a35d65c0 src/implab/safe.js --- 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); }; },