mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
fix repl problem
This commit is contained in:
parent
e308078af5
commit
0412dec4b1
1 changed files with 9 additions and 5 deletions
|
@ -3398,13 +3398,17 @@ fn finish_specialization<'a>(
|
|||
let module_id = state.root_id;
|
||||
let mut glue_getters = Vec::new();
|
||||
|
||||
if let EntryPoint::Executable {
|
||||
exposed_to_host: exposed_top_levels,
|
||||
..
|
||||
} = &entry_point
|
||||
// the REPL does not have any platform data
|
||||
if let (
|
||||
EntryPoint::Executable {
|
||||
exposed_to_host: exposed_top_levels,
|
||||
..
|
||||
},
|
||||
Some(platform_data),
|
||||
) = (&entry_point, platform_data.as_ref())
|
||||
{
|
||||
// Expose glue for the platform, not for the app module!
|
||||
let module_id = platform_data.as_ref().unwrap().module_id;
|
||||
let module_id = platform_data.module_id;
|
||||
|
||||
for (_name, proc_layout) in exposed_top_levels.iter() {
|
||||
let ret = &proc_layout.result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue