You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Avoid panic on export of top-level variable when used in global mode #9
In global mode, top-level variables are not added to any scope, so a statement like export a or export { a } will panic due to not finding the symbol if accidentally invoked with TopLevelMode::Global instead of TopLevelMode::Module.
let target_symbol = top_level_scope
.find_symbol(e.target)
.expect(format!("failed to find top-level export `{:?}`", e.target).as_str());
Unexpecting library users, pun intended 😆, really need errors fed up to them to handle, rather than being dumped out unceremoniously by any 'expect' statement. This lib is a great effort, would be great if this was addressed.
Activity
neutralvibes commentedon Jun 10, 2023
This issue still exists.
Unexpecting library users, pun intended 😆, really need errors fed up to them to handle, rather than being dumped out unceremoniously by any 'expect' statement. This lib is a great effort, would be great if this was addressed.