Closed
Description
Credits
@DogWhich found this one, so credits to him π
Code
let a = typeof a;
Stack trace
β Whoops, the AssemblyScript compiler has crashed during compile :-(
β
β Here is the stack trace hinting at the problem, perhaps it's useful?
β
β AssertionError: assertion failed
β at assert (D:\assemblyscript\std\portable\index.js:200:11)
β at Compiler.convertExpression (D:\assemblyscript\src\compiler.ts:3598:7)
β at Compiler.compileTypeof (D:\assemblyscript\src\compiler.ts:9967:25)
β at Compiler.compileUnaryPrefixExpression (D:\assemblyscript\src\compiler.ts:9889:21)
β at Compiler.compileExpression (D:\assemblyscript\src\compiler.ts:3539:21)
β at Compiler.compileGlobal (D:\assemblyscript\src\compiler.ts:1180:25)
β at Compiler.compileTopLevelStatement (D:\assemblyscript\src\compiler.ts:2140:20)
β at Compiler.compileFile (D:\assemblyscript\src\compiler.ts:1111:12)
β at Compiler.compile (D:\assemblyscript\src\compiler.ts:486:14)
β at Object.compile (D:\assemblyscript\src\index.ts:280:32)
β at D:\assemblyscript\cli\asc.js:902:31
β at measure (D:\assemblyscript\cli\asc.js:1409:3)
β at Object.main (D:\assemblyscript\cli\asc.js:900:24)
β at runTest (D:\assemblyscript\tests\compiler.js:178:7)
β at Array.forEach (<anonymous>)
β
β If it refers to the dist files, try to 'npm install source-map-support' and
β run again, which should then show the actual code location in the sources.
β
β If you see where the error is, feel free to send us a pull request. If not,
β please let us know: https://github.com/AssemblyScript/assemblyscript/issues
β
β Thank you!