summaryrefslogtreecommitdiffstats
path: root/generic/tclCompCmdsGR.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-06-27 20:10:41 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-06-27 20:10:41 (GMT)
commit7924f4a694c43ca8fe4260041d090795b0791a96 (patch)
tree82699e23c1e4be781989104cb532b5d991bf2a8e /generic/tclCompCmdsGR.c
parent59dda187056234f42857543990b47682bb686732 (diff)
downloadtcl-7924f4a694c43ca8fe4260041d090795b0791a96.zip
tcl-7924f4a694c43ca8fe4260041d090795b0791a96.tar.gz
tcl-7924f4a694c43ca8fe4260041d090795b0791a96.tar.bz2
Stop the compileProc routines leaving behind error messages in interp.
(Nicer way to solve [Bug 20a81392ec].) Make simplifications in TclCompileScript() make possible by the new structure. Still a work in progress.
Diffstat (limited to 'generic/tclCompCmdsGR.c')
-rw-r--r--generic/tclCompCmdsGR.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tclCompCmdsGR.c b/generic/tclCompCmdsGR.c
index f7c15e6..4de8cf2 100644
--- a/generic/tclCompCmdsGR.c
+++ b/generic/tclCompCmdsGR.c
@@ -2534,6 +2534,7 @@ TclCompileSyntaxError(
TclEmitPush(TclRegisterNewLiteral(envPtr, bytes, numBytes), envPtr);
CompileReturnInternal(envPtr, INST_SYNTAX, TCL_ERROR, 0,
TclNoErrorStack(interp, Tcl_GetReturnOptions(interp, TCL_ERROR)));
+ Tcl_ResetResult(interp);
}
/*