Changeset: Only pass strings to `parseNum()`
parent
7ec0d5f385
commit
18a6b7279c
|
@ -158,7 +158,7 @@ exports.opIterator = (opsStr) => {
|
||||||
const op = optOp || exports.newOp();
|
const op = optOp || exports.newOp();
|
||||||
if (regexResult[0]) {
|
if (regexResult[0]) {
|
||||||
op.attribs = regexResult[1];
|
op.attribs = regexResult[1];
|
||||||
op.lines = exports.parseNum(regexResult[2] || 0);
|
op.lines = exports.parseNum(regexResult[2] || '0');
|
||||||
op.opcode = regexResult[3];
|
op.opcode = regexResult[3];
|
||||||
op.chars = exports.parseNum(regexResult[4]);
|
op.chars = exports.parseNum(regexResult[4]);
|
||||||
regexResult = nextRegexMatch();
|
regexResult = nextRegexMatch();
|
||||||
|
|
Loading…
Reference in New Issue