emscripten-core/emscripten

preamble.js: emcc-generated functions have length 0

Open

#14,554 建立於 2021年6月29日

在 GitHub 查看
 (5 留言) (0 反應) (0 負責人)C++ (3,519 fork)batch import
help wanted

倉庫指標

Star
 (27,361 star)
PR 合併指標
 (平均合併 19天 10小時) (30 天內合併 147 個 PR)

描述

echo >test.c 'int foo (int x) { return 0; }
' &&
echo >test.js 'assert (
_foo .length == 01,
[ '\''foo has'\'',
_foo .length,
'\''arguments'\''
] .join ('\'' '\''
))' &&
emcc test.c --post-js test.js -sEXPORTED_FUNCTIONS=_foo &&
node a.out
Assertion failed: foo has 0 arguments

貢獻者指南