|
@@ -1691,10 +1691,17 @@ var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
|
|
+var $1,$receiver;
|
|
$recv((function(){
|
|
$recv((function(){
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx2) {
|
|
return $core.withContext(function($ctx2) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
|
|
+$1=$recv(anError)._context();
|
|
|
|
+if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
|
+$recv(anError)._context_($core.getThisContext());
|
|
|
|
+} else {
|
|
|
|
+$1;
|
|
|
|
+}
|
|
return $recv($recv($globals.HLDebugger)._on_(anError))._openAsTab();
|
|
return $recv($recv($globals.HLDebugger)._on_(anError))._openAsTab();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
@@ -1705,7 +1712,7 @@ return $core.withContext(function($ctx2) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
return $recv($recv($globals.ConsoleErrorHandler)._new())._handleError_(error);
|
|
return $recv($recv($globals.ConsoleErrorHandler)._new())._handleError_(error);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
-}, function($ctx2) {$ctx2.fillBlock({error:error},$ctx1,2)});
|
|
|
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({error:error},$ctx1,3)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
}));
|
|
}));
|
|
return self;
|
|
return self;
|
|
@@ -1715,11 +1722,11 @@ return self;
|
|
},
|
|
},
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["anError"],
|
|
args: ["anError"],
|
|
-source: "debugError: anError\x0a\x0a\x09[ \x0a\x09\x09(HLDebugger on: anError) openAsTab \x0a\x09] \x0a\x09\x09on: Error \x0a\x09\x09do: [ :error | ConsoleErrorHandler new handleError: error ]",
|
|
|
|
|
|
+source: "debugError: anError\x0a\x0a\x09[\x0a\x09\x09anError context ifNil: [ anError context: thisContext ].\x0a\x09\x09(HLDebugger on: anError) openAsTab ]\x0a\x09on: Error do: [ :error | ConsoleErrorHandler new handleError: error ]",
|
|
referencedClasses: ["HLDebugger", "Error", "ConsoleErrorHandler"],
|
|
referencedClasses: ["HLDebugger", "Error", "ConsoleErrorHandler"],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
pragmas: [],
|
|
pragmas: [],
|
|
-messageSends: ["on:do:", "openAsTab", "on:", "handleError:", "new"]
|
|
|
|
|
|
+messageSends: ["on:do:", "ifNil:", "context", "context:", "openAsTab", "on:", "handleError:", "new"]
|
|
}),
|
|
}),
|
|
$globals.HLErrorHandler);
|
|
$globals.HLErrorHandler);
|
|
|
|
|