Skip to content

Fix checks and tests with MoonBit 0.10.21 - #1

Open
myfreess wants to merge 4 commits into
mainfrom
fix/moonbit-0.10.21-checks-tests
Open

myfreess wants to merge 4 commits into
mainfrom
fix/moonbit-0.10.21-checks-tests

Conversation

@myfreess

Copy link
Copy Markdown

MoonBit 0.10.21 rejects direct dot calls to trait implementations, and its array representation breaks code that passes resizable MoonBit arrays directly to JavaScript. This restores project checks and all unit tests on the current toolchain.

Changes:

  • Migrate trait method calls to explicit Trait::method(receiver, ...) calls without adding extend declarations.
  • Use fixed arrays at JavaScript boundaries, fix Promise and glTF array handling, and preserve shared typed-array storage and Float32 rounding in animation interpolants.
  • Add regression tests for glTF scene transforms, nested Promise results, and shared animation samples.
  • Update the CI, publishing, and Pages toolchain pins to 0.10.21+06da1ed44 and apply the current formatter.

Validation:

  • moon check --target js --warn-list +unnecessary_annotation passes; compiler warnings remain.
  • moon test --target js: 1829 passed, 0 failed.
  • moon fmt --check and git diff --check pass.
  • moon info --target js passes with no public interface changes.

Upstream export verification could not complete because .repos/three.js is absent; upstream differential harnesses were not run locally.

This branch has not been deployed

No deployments
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.

1 participant