shithub: libmujs

Download patch

ref: 42683b9b4ac2701a296a472ff73783f34f746dc8
parent: a4e846ba5305fe5834266780267f2b16c650bc15
author: Tor Andersson <tor.andersson@artifex.com>
date: Sat Dec 28 07:54:41 EST 2013

Minor cleanups.

--- a/js-lex.c
+++ b/js-lex.c
@@ -269,12 +269,9 @@
 	while (c != q) {
 		if (c == 0 || isnewline(c))
 			return syntaxerror(J, "string not terminated");
-
 		if (c == '\\')
 			c = lexescape(sp);
-
 		textpush(J, c);
-
 		c = GET();
 	}
 
@@ -415,7 +412,6 @@
 			return c;
 
 		case '\'':
-			return lexstring(J, sp, c);
 		case '"':
 			return lexstring(J, sp, c);