You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
348 B

/*
* 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);
}