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

Add bultins: i32/i64/f32/f64.eq/ne #2246

Closed

Conversation

technohippy
Copy link
Member

⯈add eq/ne to builtin.ts

Related issue: #1310

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

Comment on lines +139 to +146
// @ts-ignore: decorator
@builtin
export declare function eq<T>(left: T, right: T): i32;

// @ts-ignore: decorator
@builtin
export declare function ne<T>(left: T, right: T): i32;

Copy link
Member

Choose a reason for hiding this comment

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

This file seems to be missing the declarations for i32.eq etc., which probably didn't show up in tests since only the generic variants are used.

Copy link
Member

Choose a reason for hiding this comment

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

I guess this also implies that adding the remaining tests would be good alongside :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I fixed them on another pull req.
#2258

src/builtins.ts Outdated Show resolved Hide resolved
src/builtins.ts Outdated Show resolved Hide resolved
@technohippy
Copy link
Member Author

Sorry,the history was broken. I'll make another pull request.

@technohippy technohippy mentioned this pull request Apr 10, 2022
2 tasks
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.

5 participants