/* * On a Linux MIPS test target 'x' assigned to a buffer coerced into 255 * instead of 0. */ /*=== 0 0 ===*/ try { var buf = new Duktape.Buffer(1); // Buffer object buf[0] = 'x'; print(buf[0]); buf = Duktape.dec('hex', '12'); // plain buffer buf[0] = 'x'; print(buf[0]); } catch (e) { print(e.stack || e); }