[jlox] experiment with stackless exception for Return
This commit is contained in:
@@ -7,4 +7,11 @@ public class Return extends RuntimeException {
|
||||
super(null, null, false, false);
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/* Potentially much faster function calls
|
||||
@Override
|
||||
public synchronized Throwable fillInStackTrace() {
|
||||
return this;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user