kripken/emscripten — Issue #218: or is not defined
Author: amorri40
Created: 2012-02-06 13:51:17+00:00
State: open

The "tempPair = or.slice(0).slice(0);" line in this example gives "ReferenceError: or is not defined" error in node.Js

function __ZNSt3__16__treeIPN6enigma8iteratorENS_4lessIS3_EENS_9allocatorIS3_EEE16__construct_nodeERKS3_($agg_result, $__v) {
var __stackBase__ = STACKTOP;
STACKTOP += 44;
var $call_i_i = __Znwj(20);
var $0 = $call_i_i;
if (($call_i_i + 16 | 0) != 0) {
var $2 = HEAP32[$__v >> 2];
HEAP32[$call_i_i + 16 >> 2] = $2;
}
HEAP32[$agg_result >> 2] = $0;
var $3 = $agg_result + 4 | 0;
tempPair = or.slice(0).slice(0);
HEAP32[$3 >> 2] = tempPair[0];
HEAP32[$3 + 4 >> 2] = tempPair[1];
STACKTOP = __stackBase__;
return;
return;
}

.o (bitcode) file: http://dl.dropbox.com/u/5072558/Emscripten/Bitcode.o.zip