mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
trim leading _ when searching for symbol in host and app
This commit is contained in:
parent
378659dfa9
commit
90fe145900
1 changed files with 1 additions and 0 deletions
|
@ -1626,6 +1626,7 @@ fn get_target_offset(
|
|||
app_obj
|
||||
.symbol_by_index(index)
|
||||
.and_then(|sym| sym.name())
|
||||
.and_then(|name| Ok(name.trim_start_matches('_')))
|
||||
.ok()
|
||||
.and_then(|name| {
|
||||
md.roc_symbol_vaddresses.get(name).map(|address| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue