shithub: libmujs

Download patch

ref: ce69f95ff02a19672e65a833df19952bbaa44f00
parent: bc914e674b0220b98a79fe8ee5329b7bd1b7257d
author: Tor Andersson <[email protected]>
date: Thu Jan 2 11:42:53 EST 2014

Treat BOM as whitespace.

--- a/js-lex.c
+++ b/js-lex.c
@@ -93,7 +93,7 @@
 
 static inline int iswhite(int c)
 {
-	return c == 0x9 || c == 0xB || c == 0xC || c == 0x20 || c == 0xA0;
+	return c == 0x9 || c == 0xB || c == 0xC || c == 0x20 || c == 0xA0 || c == 0xFEFF;
 }
 
 static inline int isnewline(c)