Skip to content

Commit 756775b

Browse files
committed
fix stacktrace & misc tests
1 parent 4c18bd0 commit 756775b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static value_t fl_current_module_counter(fl_context_t *fl_ctx, value_t *args, ui
250250
// to avoid the counter being 0 or 1, which are reserved
251251
ptrhash_put(mod_table, funcname, (void*)(uintptr_t)((nxt + 1) << 2 | 3));
252252
uv_mutex_unlock(&counter_table_lock);
253-
snprintf(buf, sizeof(buf), "%s%d", funcname, nxt);
253+
snprintf(buf, sizeof(buf), "<%s>%d", funcname, nxt);
254254
}
255255
else {
256256
snprintf(buf, sizeof(buf), "%d", jl_module_next_counter(ctx->module));

src/datatype.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ static jl_sym_t *jl_demangle_typename(jl_sym_t *s) JL_NOTSAFEPOINT
3636
len = strlen(n) - 1;
3737
else
3838
len = (end-n) - 1; // extract `f` from `#f#...`
39-
if (is10digit(n[1]) || is_anonfn_typename(n))
39+
if (is10digit(n[1]) || n[1] == '<') {
4040
return _jl_symbol(n, len+1);
41+
}
4142
return _jl_symbol(&n[1], len);
4243
}
4344

0 commit comments

Comments
 (0)