kripken/emscripten — Issue #93: Cannot call method 'push' of undefined - .ll file from GHC
Author: sixohsix
Created: 2011-10-13 13:33:00+00:00
State: open

I'm probably in way over my head and doing something very silly, but I have this stacktrace:

intertyper.js:427: TypeError: Cannot call method 'push' of undefined
subTokens.push({text:','});
^
TypeError: Cannot call method 'push' of undefined
at Object.processItem (intertyper.js:427:21)
at Object.process (framework.js:155:26)
at framework.js:104:25
at Array.forEach (native)
at Object.solve (framework.js:92:27)
at intertyper (intertyper.js:908:20)
at /home/miv/misc/emscripten/src/compiler.js:84:16

I am attempting to compile Haskell via the GHC LLVM backend. Not sure if anyone has done anything as silly as this.

The program is a trivial Hello World.

I'll attach the .ll file. It was obtained via:

ghc -fllvm -S -keep-llvm-files Foo.hs

* LLVM 2.9
* GHC 7.2.1
* emscripten latest master
* v8 latest trunk