Search Feedback

0
votes

Friendly error log

WebGL

-

-

When I use `arrow function` in my .jslib code build will be failed with following error:

```
Failed running "F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe" "F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc" @"F:\Github\Assets\..\Temp\emcc_arguments.resp"

stdout:
stderr:
F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\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 (F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\eliminator\node_modules\uglify-js\lib\parse-js.js:261:21)
at js_error (F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\eliminator\node_modules\uglify-js\lib\parse-js.js:272:15)
at croak (F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\eliminator\node_modules\uglify-js\lib\parse-js.js:742:17)
at token_error (F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\eliminator\node_modules\uglify-js\lib\parse-js.js:749:17)
at unexpected (F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\eliminator\node_modules\uglify-js\lib\parse-js.js:755:17)
at F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\eliminator\node_modules\uglify-js\lib\parse-js.js:1120:17
at maybe_unary (F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\eliminator\node_modules\uglify-js\lib\parse-js.js:1209:27)
at expr_ops (F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\eliminator\node_modules\uglify-js\lib\parse-js.js:1236:32)
at maybe_conditional (F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\eliminator\node_modules\uglify-js\lib\parse-js.js:1240:28)
at maybe_assign (F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\eliminator\node_modules\uglify-js\lib\parse-js.js:1264:28)
Traceback (most recent call last):
File "F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc", line 11, in <module>
python_selector.run(__file__)
File "F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\python_selector.py", line 38, in run
sys.exit(run_by_import(filename, main) if on_allowed_version() else run_by_subprocess(filename))
File "F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\python_selector.py", line 13, in run_by_import
return getattr(importlib.import_module(os.path.basename(filename)), main)()
File "F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc.py", line 1902, in run
wasm_text_target, misc_temp_files, optimizer)
File "F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc.py", line 2442, in do_binaryen
emit_symbol_map=emit_symbol_map)
File "F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\shared.py", line 2236, in minify_wasm_js
js_file = Building.js_optimizer_no_asmjs(js_file, ['noPrintMetadata'] + passes)
File "F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\shared.py", line 2105, in js_optimizer_no_asmjs
subprocess.check_call(NODE_JS + [js_optimizer.JS_OPTIMIZER, filename] + passes, stdout=open(next, 'w'))
File "F:\Unity2018.3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\lib\subprocess.py", line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['F:/Unity2018.3/Editor/Data\\Tools\\nodejs\\node.exe', '--stack_size=8192', '--max-old-space-size=4096', 'F:\\Unity2018.3\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\Emscripten\\tools\\js-optimizer.js', 'C:\\Users\\rini\\AppData\\Local\\Temp\\tmplwr8jm\\build.bc.o.js.pp.js.mem.js', 'noPrintMetadata', 'AJSDCE', 'minifyWhitespace']' returned non-zero exit status 1
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
```

This actually never indicates the problem and just makes me confusing.

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(10889)

2D

(287)

Ads

(57)

AI & Navigation

(81)

Analytics

(130)

Animation

(406)

Asset Store

(364)

Asset Store Publisher

(19)

Assets

(551)

Audio

(185)

Cloud Build

(148)

Collaborate

(68)

Docs & Tutorials

(247)

Editor

(2545)

Everyplay

(17)

Game Performance Reporting

(21)

General

(987)

Graphics

(894)

GUI

(442)

Input

(173)

Licensing

(93)

Networking

(190)

Physics

(387)

Platforms

(445)

Profiling & Optimization

(84)

Runtime

(185)

Scripting

(1141)

Terrain

(174)

WebGL

(142)