shithub: libmujs

Download patch

ref: e9f4ecc3787d3c8147a380aa1f3649a4bea53a37
parent: 8f790df9e5bd8bfe104e3af1965ea5f0dac8ce34
author: Tor Andersson <tor.andersson@artifex.com>
date: Wed Jan 7 11:45:28 EST 2015

strict mode: No 'with' statements allowed.

--- a/jsparse.c
+++ b/jsparse.c
@@ -760,6 +760,8 @@
 	}
 
 	if (jsP_accept(J, TK_WITH)) {
+		if (J->strict)
+			jsP_error(J, "'with' statements are not allowed in strict mode");
 		jsP_expect(J, '(');
 		a = expression(J, 0);
 		jsP_expect(J, ')');