From fe80b398b55d301364b2fc421cd32d931bc7e713 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 30 Aug 2017 00:20:54 -0400 Subject: [PATCH] prebirth: Correct token value parsing Empty string was not matching, which was causing its value to be '""', which expanded (in JS) into the compiled string '""""'. Oops. * build-aux/bootstrap/prebirth.js (Parser#_token): Distinguish empty values from non-matches. --- build-aux/bootstrap/prebirth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/bootstrap/prebirth.js b/build-aux/bootstrap/prebirth.js index a11fdd0..ae70d3b 100644 --- a/build-aux/bootstrap/prebirth.js +++ b/build-aux/bootstrap/prebirth.js @@ -268,7 +268,7 @@ class Parser const token = { type: type, lexeme: lexeme, - value: value || lexeme, + value: ( value === undefined ) ? lexeme : value, pos: pos };