Skip to content

fix: handle Infinity results and improve eval safety in calculator#646

Open
Pratikshya32 wants to merge 1 commit into
steam-bell-92:mainfrom
Pratikshya32:fix/calculator-operator-chaining
Open

fix: handle Infinity results and improve eval safety in calculator#646
Pratikshya32 wants to merge 1 commit into
steam-bell-92:mainfrom
Pratikshya32:fix/calculator-operator-chaining

Conversation

@Pratikshya32
Copy link
Copy Markdown

Fixes #645

This PR updates the calculator project to evaluate expressions via a sandboxed Function sandbox and clears previous outputs safely if an out-of-bounds Infinity result occurs.

Requesting gssoc, gssoc:approved point labels!

@vercel
Copy link
Copy Markdown

vercel Bot commented May 23, 2026

Someone is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

[Bug]: Calculator handles Infinity results poorly and uses unsafe eval()

1 participant