function test() { var b = Duktape.Buffer(4096); var i; print(typeof b); for (i = 0; i < 1e8; i++) { b[100] = 123; } } try { test(); } catch (e) { print(e.stack || e); throw e; }