summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authormsofer <msofer@noemail.net>2009-12-19 14:21:58 (GMT)
committermsofer <msofer@noemail.net>2009-12-19 14:21:58 (GMT)
commitcde6ace493c3bf9042b9f20bea8c034591870a4b (patch)
treed3399287bc97eac2c88d646e442b4437f5a6a5a5 /generic
parentd2969ee3c78a8b183642a4453cce1957d2986b36 (diff)
downloadtcl-cde6ace493c3bf9042b9f20bea8c034591870a4b.zip
tcl-cde6ace493c3bf9042b9f20bea8c034591870a4b.tar.gz
tcl-cde6ace493c3bf9042b9f20bea8c034591870a4b.tar.bz2
* generic/tclBasic.c: Fix for bad cmd resolution by coroutines
* tests/coroutine.test: [Bug #2917627]. Thanks to schelte for finding it. FossilOrigin-Name: 28c837c3c8a0577a5378c73fc31c34a644f6d471
Diffstat (limited to 'generic')
-rw-r--r--generic/tclBasic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 1d649a1..aecdfa0 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -16,7 +16,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclBasic.c,v 1.435 2009/12/13 17:54:05 msofer Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.436 2009/12/19 14:22:00 msofer Exp $
*/
#include "tclInt.h"
@@ -8869,6 +8869,7 @@ TclNRCoroutineObjCmd(
TclNRAddCallback(interp, NRCoroutineExitCallback, corPtr,
NULL, NULL, NULL);
iPtr->evalFlags |= TCL_EVAL_REDIRECT;
+ iPtr->lookupNsPtr = iPtr->varFramePtr->nsPtr;
TclNREvalObjEx(interp, cmdObjPtr, 0, NULL, 0);
return TCL_OK;