Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asc's --converge argument is broken #1248

Closed
Feavy opened this issue May 3, 2020 · 1 comment · Fixed by #1250
Closed

asc's --converge argument is broken #1248

Feavy opened this issue May 3, 2020 · 1 comment · Fixed by #1250
Labels

Comments

@Feavy
Copy link

Feavy commented May 3, 2020

Hello,

AssemblyScript Compiler throws an error when using the --converge argument:

PS C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test> yarn asprod
yarn run v1.21.1
$ asc assembly/index.ts -b build/build.wasm --optimize --converge
TypeError: Cannot read property 'length' of undefined
    at C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\assemblyscript\dist\assemblyscript.js:7:132929
    at E (C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\assemblyscript\dist\assemblyscript.js:7:133115)
    at c.toBinary (C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\assemblyscript\dist\assemblyscript.js:7:124717)
    at C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\assemblyscript\cli\asc.js:836:25
    at measure (C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\assemblyscript\cli\asc.js:1103:3)
    at Object.main (C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\assemblyscript\cli\asc.js:832:25)
    at C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\assemblyscript\bin\asc:21:47
TypeError: Cannot read property 'length' of undefined
    at C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\assemblyscript\dist\assemblyscript.js:7:132929
    at E (C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\assemblyscript\dist\assemblyscript.js:7:133115)
    at c.toBinary (C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\assemblyscript\dist\assemblyscript.js:7:124717)
    at C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\assemblyscript\cli\asc.js:836:25
    at measure (C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\assemblyscript\cli\asc.js:1103:3)
    at Object.main (C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\assemblyscript\cli\asc.js:832:25)
    at C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\assemblyscript\bin\asc:21:47

C:\Users\quent\Documents\Projets_Javascript\AssemblyScript-Test\node_modules\binaryen\index.js:18
function u(b){if(a.onAbort)a.onAbort(b);x(b);A(b);ta=!0;throw"abort("+b+"). Build with -s ASSERTIONS=1 for more info.";}var v=null,Va="data:application/octet-stream;base64,",Wa,Xa;
                                                        ^
abort(TypeError: Cannot read property 'length' of undefined). Build with -s ASSERTIONS=1 for more info.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@dcodeIO dcodeIO added the bug label May 3, 2020
@dcodeIO
Copy link
Member

dcodeIO commented May 3, 2020

Can confirm, something's broken there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants