kripken/emscripten — Issue #96: std::cout popping a JS error
Author: BenoitT
Created: 2011-10-14 19:42:53+00:00
State: open

A simple cout isn't working anymore. It was working on previous version. Here are the details:

Windows 7
EMScripten Pre-3.0.32
LLVM 3.0 (last version on SVN)
V8

C++ code
========
#include

int main()
{
std::cout << "Test";
return 0;
}

Generated JS Code
========
intertyper.js:870: TypeError: Cannot read property 'tokens' of undefined
var params = parseParamTokens(item.tokens[3].item.tokens);
^
TypeError: Cannot read property 'tokens' of undefined
at Object.processItem (intertyper.js:870:56)
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:910:20)
at C:\webcompiler\External\EMScripten\src\compiler.js:84:16

===========
I really don't know where to find. Anyone have a clue what's wrong?