diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2013-10-08 09:02:50 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2013-10-08 09:02:50 (GMT) |
commit | 784987f7c11d9990ed7e2db04d85d42f177bdefd (patch) | |
tree | 597e46323b2e5e99c4ce5b7637219be985773d6b /generic/tclCompCmdsSZ.c | |
parent | fb703e49177297d9c7ae9c6eb5bdaefe338838b2 (diff) | |
download | tcl-784987f7c11d9990ed7e2db04d85d42f177bdefd.zip tcl-784987f7c11d9990ed7e2db04d85d42f177bdefd.tar.gz tcl-784987f7c11d9990ed7e2db04d85d42f177bdefd.tar.bz2 |
Working towards better handling of stack balance with break and continue exceptions.
Diffstat (limited to 'generic/tclCompCmdsSZ.c')
-rw-r--r-- | generic/tclCompCmdsSZ.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCompCmdsSZ.c b/generic/tclCompCmdsSZ.c index 44cb66e..a5ec731 100644 --- a/generic/tclCompCmdsSZ.c +++ b/generic/tclCompCmdsSZ.c @@ -1965,7 +1965,7 @@ TclCompileThrowCmd( OP( LIST_LENGTH); OP1( JUMP_FALSE1, 16); OP4( LIST, 2); - OP44( RETURN_IMM, 1, 0); + OP44( RETURN_IMM, TCL_ERROR, 0); TclAdjustStackDepth(2, envPtr); OP( POP); OP( POP); @@ -1974,7 +1974,7 @@ TclCompileThrowCmd( PUSH( "type must be non-empty list"); PUSH( "-errorcode {TCL OPERATION THROW BADEXCEPTION}"); } - OP44( RETURN_IMM, 1, 0); + OP44( RETURN_IMM, TCL_ERROR, 0); return TCL_OK; } |