ref: ef891c5c9e8a49415674edf768a6f88c8f353809
parent: d4f7b160e14aec453919c4c13328a92d59ccbb78
author: Tor Andersson <[email protected]>
date: Mon Feb 24 17:44:59 EST 2014
Oops. Forgot to emit "setprop" for assignment operators.
--- a/jscompile.c
+++ b/jscompile.c
@@ -374,6 +374,7 @@
emitlocal(J, F, OP_SETLOCAL, OP_SETVAR, lhs->string);
break;
case EXP_INDEX:
+ emit(J, F, OP_SETPROP);
break;
case EXP_MEMBER:
emitstring(J, F, OP_SETPROP_S, lhs->b->string);