Skip to content

Fix js bindings for manifold.simplify() with default parameters #1543

Merged
pca006132 merged 2 commits into
elalish:masterfrom
dsafa:manifold-simplify-default
Feb 27, 2026
Merged

Fix js bindings for manifold.simplify() with default parameters #1543
pca006132 merged 2 commits into
elalish:masterfrom
dsafa:manifold-simplify-default

Conversation

@dsafa

@dsafa dsafa commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

Calling Manifold.simplify() with no arguments will throw the binding error about invalid number of arguments.

Guess embind still doesn't have good way to catch/deal with default arguments. Wasn't sure what to put for the test other than call it and it doesn't throw so I just followed the existing ones.

@codecov

codecov Bot commented Feb 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.43%. Comparing base (7332399) to head (0e13b8f).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1543   +/-   ##
=======================================
  Coverage   92.43%   92.43%           
=======================================
  Files          35       35           
  Lines        6094     6094           
=======================================
  Hits         5633     5633           
  Misses        461      461           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pca006132 pca006132 merged commit b722d7f into elalish:master Feb 27, 2026
36 checks passed
@pca006132 pca006132 mentioned this pull request Feb 27, 2026
@dsafa dsafa deleted the manifold-simplify-default branch February 28, 2026 06:35
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