Browse Source

Merge pull request #485 from herby/better-repl-stack-logging

Better repl stack logging
Nicolas Petton 11 years ago
parent
commit
4b24aaf35f
5 changed files with 450 additions and 119 deletions
  1. 1 3
      cli/js/AmberCli.js
  2. 443 110
      cli/js/amber-cli.js
  3. 2 2
      js/Kernel-Exceptions.deploy.js
  4. 3 3
      js/Kernel-Exceptions.js
  5. 1 1
      st/Kernel-Exceptions.st

+ 1 - 3
cli/js/AmberCli.js

@@ -975,9 +975,7 @@ category: 'accessing',
 fn: function (){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
-var $1;
-$1=(4000);
-return $1;
+return (4000);
 }, function($ctx1) {$ctx1.fill(self,"defaultPort",{},smalltalk.FileServer.klass)})},
 args: [],
 source: "defaultPort\x0a\x09^4000",

File diff suppressed because it is too large
+ 443 - 110
cli/js/amber-cli.js


+ 2 - 2
js/Kernel-Exceptions.deploy.js

@@ -346,9 +346,9 @@ $1;
 } else {
 _st(self)._logContext_(_st(aContext)._home());
 };
-_st(self)._log_(_st(_st(_st(_st(aContext)._receiver())._asString()).__comma(">>")).__comma(_st(_st(aContext)._selector())._asString()));
+_st(self)._log_(_st(aContext)._asString());
 return self}, function($ctx1) {$ctx1.fill(self,"logContext:",{aContext:aContext},smalltalk.ErrorHandler)})},
-messageSends: ["ifNotNil:", "logContext:", "home", "log:", ",", "asString", "selector", "receiver"]}),
+messageSends: ["ifNotNil:", "logContext:", "home", "log:", "asString"]}),
 smalltalk.ErrorHandler);
 
 smalltalk.addMethod(

+ 3 - 3
js/Kernel-Exceptions.js

@@ -482,11 +482,11 @@ $1;
 } else {
 _st(self)._logContext_(_st(aContext)._home());
 };
-_st(self)._log_(_st(_st(_st(_st(aContext)._receiver())._asString()).__comma(">>")).__comma(_st(_st(aContext)._selector())._asString()));
+_st(self)._log_(_st(aContext)._asString());
 return self}, function($ctx1) {$ctx1.fill(self,"logContext:",{aContext:aContext},smalltalk.ErrorHandler)})},
 args: ["aContext"],
-source: "logContext: aContext\x0a\x09aContext home ifNotNil: [\x0a\x09\x09self logContext: aContext home].\x0a\x09self log: aContext receiver asString, '>>', aContext selector asString",
-messageSends: ["ifNotNil:", "logContext:", "home", "log:", ",", "asString", "selector", "receiver"],
+source: "logContext: aContext\x0a\x09aContext home ifNotNil: [\x0a\x09\x09self logContext: aContext home].\x0a\x09self log: aContext asString",
+messageSends: ["ifNotNil:", "logContext:", "home", "log:", "asString"],
 referencedClasses: []
 }),
 smalltalk.ErrorHandler);

+ 1 - 1
st/Kernel-Exceptions.st

@@ -184,7 +184,7 @@ log: aString
 logContext: aContext
 	aContext home ifNotNil: [
 		self logContext: aContext home].
-	self log: aContext receiver asString, '>>', aContext selector asString
+	self log: aContext asString
 !
 
 logError: anError

Some files were not shown because too many files changed in this diff