Skip to content

Commit 52bf76b

Browse files
committed
Seems that ignoring lack of outer_ctx serves us better. It semi-legitimately-ish comes up in some cases, and ignoring those is safe enough for the time being. This fixes pre-compilation of enums (and perhaps some other bits too), and is the last known blocker for merging bs.
1 parent d11dc37 commit 52bf76b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/6model/serialization.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,7 @@ static Parrot_Int4 get_serialized_outer_context_idx(PARROT_INTERP, Serialization
348348
if (!PMC_IS_NULL(VTABLE_getprop(interp, closure, Parrot_str_new_constant(interp, "COMPILER_STUB"))))
349349
return 0;
350350
if (PMC_IS_NULL(PARROT_SUB(closure)->outer_ctx))
351-
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
352-
"Serialization Error: missing outer context for closure '%Ss'",
353-
VTABLE_get_string(interp, closure));
351+
return 0;
354352
return get_serialized_context_idx(interp, writer, PARROT_SUB(closure)->outer_ctx);
355353
}
356354

0 commit comments

Comments
 (0)