Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

'TypeError: (intermediate value) is not a function' when compiling

未关闭
#229 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
javascript, sqlite, wasm
领域
build-system

调研方向

Start by reproducing emmake make with the reported Emscripten 1.37.28 and CoffeeScript 2.1.1 versions, then inspect the command at Makefile:24 and the UglifyJS parse error. Done means the compilation completes without the TypeError or optimizer assertion.

由索引模型根据 Issue 内容生成。

描述

When I compile via emmake make I get the following error:

emcc --memory-init-file 0 -O3 -s INLINING_LIMIT=50 -s RESERVED_FUNCTION_POINTERS=64 -s EXPORTED_FUNCTIONS=@exported_functions -s EXTRA_EXPORTED_RUNTIME_METHODS=@exported_runtime_methods c/extension-functions.bc c/sqlite3.bc --post-js js/api.js -o js/sql-optimized-raw.js ;\


/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:272
       throw new JS_Parse_Error(message, line, col, pos);
       ^
TypeError: (intermediate value) is not a function
   at new JS_Parse_Error (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:261:21)
   at js_error (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:272:15)
   at croak (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:742:17)
   at token_error (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:749:17)
   at unexpected (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:755:17)
   at Object.semicolon (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:775:51)
   at prog1 (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:1314:29)
   at simple_statement (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:906:35)
   at /usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:816:35
   at /usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:1297:32
Traceback (most recent call last):
 File "/usr/lib/emscripten/emcc.py", line 2791, in <module>
   run()
 File "/usr/lib/emscripten/emcc.py", line 1846, in run
   optimizer.flush()
 File "/usr/lib/emscripten/emcc.py", line 239, in flush
   self.run_passes(chunks[0], title, just_split=False, just_concat=False)
 File "/usr/lib/emscripten/emcc.py", line 272, in run_passes
   just_concat=just_concat)
 File "/usr/lib/emscripten/tools/shared.py", line 2150, in js_optimizer
   ret = js_optimizer.run(filename, passes, NODE_JS, debug, extra_info, just_split, just_concat)
 File "/usr/lib/emscripten/tools/js_optimizer.py", line 568, in run
   return temp_files.run_and_clean(lambda: run_on_js(filename, passes, js_engine, source_map, extra_info, just_split, just_concat))
 File "/usr/lib/emscripten/tools/tempfiles.py", line 79, in run_and_clean
   return func()
 File "/usr/lib/emscripten/tools/js_optimizer.py", line 568, in <lambda>
   return temp_files.run_and_clean(lambda: run_on_js(filename, passes, js_engine, source_map, extra_info, just_split, just_concat))
 File "/usr/lib/emscripten/tools/js_optimizer.py", line 511, in run_on_js
   assert proc.returncode == 0
AssertionError
make: *** [Makefile:24: js/sql-optimized-raw.js] Fehler 1

emscripten v.1.37.28
CoffeeScript version 2.1.1

主要语言
JavaScript
星标
13.7k
派生
1.1k
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sql-js/sql.js 的其他 Issue

查看 sql-js/sql.js 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。