Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with the arity of externals. #6881

Merged
merged 1 commit into from
Jul 16, 2024
Merged

Conversation

cristianoc
Copy link
Collaborator

No description provided.

@@ -4,11 +4,11 @@ import ImportHookDefaultGen from "./ImportHookDefault.gen";
import * as ImportHookDefaultGen$1 from "./ImportHookDefault.gen";

function make(prim) {
return ImportHookDefaultGen$1.make;
return ImportHookDefaultGen$1.make(prim);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change in the output looks incorrect to me.
Before it returned the make function, now it applies it and returns the result.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or was it broken before?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was broken before.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, I missed this in the review of the previous PR. 🙈

jscomp/ml/translcore.ml Outdated Show resolved Hide resolved
@cristianoc cristianoc force-pushed the external_arity_fix branch from b6810b4 to 9ad29cd Compare July 16, 2024 07:45
Copy link
Member

@cknitt cknitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! 🎉

@cristianoc cristianoc merged commit 7cdb66d into master Jul 16, 2024
19 checks passed
@cristianoc cristianoc deleted the external_arity_fix branch July 16, 2024 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants