Skip to content

Commit

Permalink
script: better script parse error formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Nov 13, 2016
1 parent 3beae44 commit 6d3401f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6d3401f

Please sign in to comment.