Skip to content

Commit

Permalink
fix: return wrapped module instead of original module (#946)
Browse files Browse the repository at this point in the history
We were adding the `__esModule` export as intended, but then returning
the original module instead of the wrapped one.
  • Loading branch information
nathanwhit authored Oct 26, 2024
1 parent 172f597 commit 47d52e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ops_builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ fn wrap_module<'s>(

wrapper_module.evaluate(scope)?;

Some(module)
Some(wrapper_module)
}

#[op2(reentrant)]
Expand Down

0 comments on commit 47d52e2

Please sign in to comment.