changeset 461:e12841f7edef

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 06 May 2015 14:51:23 -0600
parents b48cfa14ba60
children 2e79b47d02a2
files core/src/luan/LuanBit.java core/src/luan/StackTraceElement.java
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
diff -r b48cfa14ba60 -r e12841f7edef core/src/luan/LuanBit.java
--- a/core/src/luan/LuanBit.java	Wed May 06 14:32:29 2015 -0600
+++ b/core/src/luan/LuanBit.java	Wed May 06 14:51:23 2015 -0600
@@ -18,13 +18,10 @@
 
 	public String stackTrace() {
 		StringBuilder buf = new StringBuilder();
-		LuanElement el = this.el;
 		if( el != null )
 			buf.append( "\n\t" ).append( el.toString(null) );
 		for( int i  = luan.stackTrace.size() - 1; i>=0; i-- ) {
-			StackTraceElement stackTraceElement = luan.stackTrace.get(i);
-			el = stackTraceElement.call;
-			buf.append( "\n\t" ).append( el.toString(stackTraceElement.fnName) );
+			buf.append( "\n\t" ).append( luan.stackTrace.get(i) );
 		}
 		return buf.toString();
 	}
diff -r b48cfa14ba60 -r e12841f7edef core/src/luan/StackTraceElement.java
--- a/core/src/luan/StackTraceElement.java	Wed May 06 14:32:29 2015 -0600
+++ b/core/src/luan/StackTraceElement.java	Wed May 06 14:51:23 2015 -0600
@@ -9,4 +9,8 @@
 		this.call = call;
 		this.fnName = fnName;
 	}
+
+	@Override public String toString() {
+		return call.toString(fnName);
+	}
 }