|
@@ -343,6 +343,11 @@ define(['./junk-drawer'], function ($goodies) {
|
|
function resultWithNoErrorHandling (worker) {
|
|
function resultWithNoErrorHandling (worker) {
|
|
try {
|
|
try {
|
|
return worker(thisContext);
|
|
return worker(thisContext);
|
|
|
|
+ } catch (error) {
|
|
|
|
+ if (error.context == null) {
|
|
|
|
+ error.context = thisContext;
|
|
|
|
+ }
|
|
|
|
+ throw error;
|
|
} finally {
|
|
} finally {
|
|
thisContext = null;
|
|
thisContext = null;
|
|
}
|
|
}
|