script: better script parse error formatting.

This commit is contained in:
Christopher Jeffrey 2016-11-13 11:47:52 -08:00
parent 3beae441bb
commit 6d3401f08b
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -2989,6 +2989,11 @@ Script.format = function format(code) {
continue;
}
if (value === -1) {
out.push('OP_INVALIDOPCODE');
break;
}
value = value.toString(16);
if (value.length < 2)