negative indexes don't work in javascript

This commit is contained in:
Ryan X. Charles 2014-01-06 14:52:23 -05:00
parent 2314a9dd29
commit f62875efad
1 changed files with 2 additions and 2 deletions

View File

@ -118,8 +118,8 @@ function spec(b) {
{ {
return (this.chunks.length > 3 && return (this.chunks.length > 3 &&
isSmallIntOp(this.chunks[0]) && isSmallIntOp(this.chunks[0]) &&
isSmallIntOp(this.chunks[-2]) && isSmallIntOp(this.chunks[this.chunks.length-2]) &&
this.chunks[-1] == OP_CHECKMULTISIG); this.chunks[this.chunks.length-1] == OP_CHECKMULTISIG);
}; };
// is this a script form we know? // is this a script form we know?