shithub: libmujs

Download patch

ref: 9f0153a0252cbf287c72ac441f938a86c29e21a9
parent: 269904fca05ed23eccb394b600e52c5f4e68bebd
author: Tor Andersson <[email protected]>
date: Mon Mar 18 09:57:19 EDT 2019

Fix typo in ctypeof.

--- a/jscompile.c
+++ b/jscompile.c
@@ -269,7 +269,7 @@
 
 static void ctypeof(JF, js_Ast *exp)
 {
-	if (exp->type == EXP_IDENTIFIER) {
+	if (exp->a->type == EXP_IDENTIFIER) {
 		emitline(J, F, exp->a);
 		emitlocal(J, F, OP_GETLOCAL, OP_HASVAR, exp->a);
 	} else {