summaryrefslogtreecommitdiff
path: root/src/llex.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/llex.js')
-rw-r--r--src/llex.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llex.js b/src/llex.js
index 5e6b9ec..905be5a 100644
--- a/src/llex.js
+++ b/src/llex.js
@@ -413,7 +413,7 @@ const read_string = function(ls, del, seminfo) {
let will;
let c;
switch(ls.current) {
- case char['a']: c = char['\a']; will = 'read_save'; break;
+ case char['a']: c = 7 /* \a isn't valid JS */; will = 'read_save'; break;
case char['b']: c = char['\b']; will = 'read_save'; break;
case char['f']: c = char['\f']; will = 'read_save'; break;
case char['n']: c = char['\n']; will = 'read_save'; break;