octane icon indicating copy to clipboard operation
octane copied to clipboard

A bug in the benchmark program...

Open JacksonGL opened this issue 8 years ago • 0 comments

I know this is a performance benchmark. But there is probably a bug here.

if (sixbits[3] >= 0x40) {
	decode64.length -= 1;  // no side effect
	if (sixbits[2] >= 0x40) {
		decode64.length -= 1; // no side effect
	}
}

decode64 holds a primitive string value. Decreasing its length property has no side effect: it won't throw away the last character.

JacksonGL avatar May 03 '17 06:05 JacksonGL