[svn:parrot] r38448 - trunk/src/pmc
fperrad at svn.parrot.org
fperrad at svn.parrot.org
Sat May 2 14:28:33 UTC 2009
Author: fperrad
Date: Sat May 2 14:28:33 2009
New Revision: 38448
URL: https://trac.parrot.org/parrot/changeset/38448
Log:
[pmc] relax condition for annotations in backtrace.
Needed by Lua, where LuaFunction extends Sub PMC.
Modified:
trunk/src/pmc/exception.pmc
Modified: trunk/src/pmc/exception.pmc
==============================================================================
--- trunk/src/pmc/exception.pmc Sat May 2 14:04:54 2009 (r38447)
+++ trunk/src/pmc/exception.pmc Sat May 2 14:28:33 2009 (r38448)
@@ -770,9 +770,7 @@
VTABLE_set_pmc_keyed_str(interp, frame, CONST_STRING(interp, "sub"), sub_pmc);
/* Look up any annotations and put them in the hash. */
- if (!PMC_IS_NULL(sub_pmc)
- && sub_pmc->vtable->base_type == enum_class_Sub) {
-
+ if (!PMC_IS_NULL(sub_pmc)) {
PMC_get_sub(interp, sub_pmc, sub);
if (sub->seg->annotations) {
More information about the parrot-commits
mailing list