ref: 0365576bab685613d46a3f714b602b774c4e3e1c
parent: 6a85c78a5d89503e7e5f0b09b2de9fe2dce7183d
author: Tor Andersson <[email protected]>
date: Tue May 16 09:16:16 EDT 2017
Emit line numbers for each entry in compound literals.
--- a/jscompile.c
+++ b/jscompile.c
@@ -288,6 +288,7 @@
while (list) {
if (list->a->type != EXP_UNDEF) {
emitnumber(J, F, i++);
+ emitline(J, F, list->a);
cexp(J, F, list->a);
emit(J, F, OP_INITPROP);
} else {
@@ -342,6 +343,7 @@
switch (kv->type) {
default: /* impossible */ break;
case EXP_PROP_VAL:
+ emitline(J, F, kv->b);
cexp(J, F, kv->b);
emit(J, F, OP_INITPROP);
break;