emscripten-core/emscripten

preamble.js: emcc-generated functions have length 0

開放

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

 (5 則留言) (0 個反應) (0 位負責人)C++ (3,519 個分叉)batch import
help wanted

倉庫指標

星標
 (27,361 顆星)
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

貢獻者指南