# HG changeset patch # User cin # Date 1504867485 -10800 # Node ID 3d4abbce4afcf66269d20fedec88bf91aa43c7cc # Parent 8705103f074fb2e6f61ee11d0afe66b3be3d71e6 fixed safe.async function diff -r 8705103f074f -r 3d4abbce4afc src/implab/safe.js --- a/src/implab/safe.js Mon Aug 21 18:03:00 2017 +0300 +++ b/src/implab/safe.js Fri Sep 08 13:44:45 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); }; },