From b95cd4f66d5e111ce9986fe1da013bcc7750638a Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Tue, 16 Jan 2018 18:16:12 +0200 Subject: [PATCH] Simplify possibly confusing code line I may be wrong, but this line not only is wasteful but seems a bit confusing: it may wrongly suggest we will use the local `char` variable with the next character one more time. --- the-super-tiny-compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/the-super-tiny-compiler.js b/the-super-tiny-compiler.js index 411fa54..d625ee2 100755 --- a/the-super-tiny-compiler.js +++ b/the-super-tiny-compiler.js @@ -495,7 +495,7 @@ function tokenizer(input) { } // Skip the closing double quote. - char = input[++current]; + ++current; // And add our `string` token to the `tokens` array. tokens.push({ type: 'string', value });