Check for null explicitly in token_top()

This commit is contained in:
2026-03-15 13:40:43 +00:00
parent 0dd2a925d8
commit 3ebb74c73c

2
asm.js
View File

@@ -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 };