Skip to content

[WIP] runtime/js: js for emscripten#1180

Merged
xushiwei merged 1 commit intogoplus:mainfrom
visualfc:emcc_js
Jul 1, 2025
Merged

[WIP] runtime/js: js for emscripten#1180
xushiwei merged 1 commit intogoplus:mainfrom
visualfc:emcc_js

Conversation

@visualfc
Copy link
Member

@visualfc visualfc commented Jun 30, 2025

TODO

  • github.com/goplus/llgo/runtime/js
  • CopyBytesToGo/CopyBytesToJS

error for move to syscall/js

error: undefined symbol: internal/bytealg.init (referenced by root reference (e.g. compiled C/C++ code))
warning: To disable errors for undefined symbols use `-sERROR_ON_UNDEFINED_SYMBOLS=0`
warning: _internal/bytealg.init may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: internal/reflectlite.TypeOf (referenced by root reference (e.g. compiled C/C++ code))
warning: _internal/reflectlite.TypeOf may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: internal/reflectlite.init (referenced by root reference (e.g. compiled C/C++ code))
warning: _internal/reflectlite.init may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: math.init (referenced by root reference (e.g. compiled C/C++ code))
warning: _math.init may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
warning: JS library symbol '$allocateUTF8' is deprecated. Please open a bug if you have a continuing need for this symbol [-Wdeprecated]
Error: Aborting compilation due to previous errors
emcc: error: '/usr/local/opt/node/bin/node /usr/local/Cellar/emscripten/4.0.8/libexec/tools/compiler.mjs -' failed (returned 1)
panic: exit status 1

@codecov
Copy link

codecov bot commented Jun 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.71%. Comparing base (f0728c4) to head (e972be8).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1180   +/-   ##
=======================================
  Coverage   87.71%   87.71%           
=======================================
  Files          29       29           
  Lines        7279     7279           
=======================================
  Hits         6385     6385           
  Misses        827      827           
  Partials       67       67           

☔ 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.

@xushiwei xushiwei merged commit 8983b14 into goplus:main Jul 1, 2025
35 checks passed
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