Check for null explicitly in token_top()
This commit is contained in:
2
asm.js
2
asm.js
@@ -316,7 +316,7 @@ class Parser {
|
|||||||
if (opcode)
|
if (opcode)
|
||||||
return { type: Action.APPEND, opcode };
|
return { type: Action.APPEND, opcode };
|
||||||
const literal = this.integer(token);
|
const literal = this.integer(token);
|
||||||
if (literal)
|
if (literal != null)
|
||||||
return { type: Action.APPEND, literal };
|
return { type: Action.APPEND, literal };
|
||||||
|
|
||||||
return { type: Action.SYMBOL, symbol: token };
|
return { type: Action.SYMBOL, symbol: token };
|
||||||
|
|||||||
Reference in New Issue
Block a user