summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-06-05 17:57:05 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-06-05 17:57:05 (GMT)
commit0ce2a2cb2fb98447e3060196f2415dd267330e0d (patch)
treebaea8961dd7792cf7300ab1799771f4ebdc7ad72 /generic/tclProc.c
parent68919c24042c4dd2b585f557d98d6bea70fa1cf4 (diff)
downloadtcl-0ce2a2cb2fb98447e3060196f2415dd267330e0d.zip
tcl-0ce2a2cb2fb98447e3060196f2415dd267330e0d.tar.gz
tcl-0ce2a2cb2fb98447e3060196f2415dd267330e0d.tar.bz2
* generic/tclBasic.c: Added interp flag value ERR_LEGACY_COPY to
* generic/tclInt.h: control the timing with which the global * generic/tclNamesp.c: variables ::errorCode and ::errorInfo get * generic/tclProc.c: updated after an error. This keeps more * generic/tclResult.c: precise compatibility with Tcl 8.4. * tests/result.test (result-6.2): [Bug 1649062]
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r--generic/tclProc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c
index 51b18115..f82458f 100644
--- a/generic/tclProc.c
+++ b/generic/tclProc.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclProc.c,v 1.115 2007/05/11 09:17:01 dkf Exp $
+ * RCS: @(#) $Id: tclProc.c,v 1.116 2007/06/05 17:57:07 dgp Exp $
*/
#include "tclInt.h"
@@ -2026,6 +2026,9 @@ TclUpdateReturnInfo(
*/
code = iPtr->returnCode;
+ if (code == TCL_ERROR) {
+ iPtr->flags |= ERR_LEGACY_COPY;
+ }
}
return code;
}