• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moonbitlang / core / 6344
89%

Build:
DEFAULT BRANCH: main
Ran 25 Aug 2026 10:44AM UTC
Jobs 1
Files 452
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Aug 2026 10:41AM UTC coverage: 90.885%. Remained the same
6344

push

github

bobzhang
fix(js): use FixedArray at JS FFI boundaries returning arrays

`Array[T]` is represented as a `{buf, len}` struct on the JS backend,
while `FixedArray[T]` is a raw JS array, so returning a JS array from an
FFI declared as `-> Array[String]` handed MoonBit a malformed value.
This is what the `-deprecated` warning on `Array` in JS FFI is about.

- `encoding/utf8`: `decode_utf8_js` now returns `FixedArray[String]`.
- `env`: `get_env_vars_array_internal` now returns `FixedArray[String]`.
- `env`: split `get_cli_args_internal` into an FFI returning
  `FixedArray[String]` plus a wrapper converting to `Array[String]`,
  since the public `env.args()` returns `Array[String]`. This fixes an
  actual bug: `env.args()` was returning a raw JS array typed as `Array`.

Clears the last three deprecated-FFI warnings from `moon check --target all`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAgzTTZDhJxTvNrBAy2zFc

16742 of 18421 relevant lines covered (90.89%)

306210.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6344.1 25 Aug 2026 10:44AM UTC 453
90.9
GitHub Action Run
Source Files on build 6344
  • Tree
  • List 452
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4ce4c495 on github
  • Prev Build on main (#6342)
  • Next Build on main (#6348)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc