diff --git a/js2/src/bytecodegen.cpp b/js2/src/bytecodegen.cpp index 56071e08e325..0e23b563affc 100644 --- a/js2/src/bytecodegen.cpp +++ b/js2/src/bytecodegen.cpp @@ -2346,7 +2346,7 @@ uint32 printInstruction(Formatter &f, uint32 i, const ByteCodeModule& bcm) case SetElementOp: { uint16 u = bcm.getShort(i); - printFormat(f, "%uh", i); + printFormat(f, "%uh", u); i += 2; } break; @@ -2361,7 +2361,7 @@ uint32 printInstruction(Formatter &f, uint32 i, const ByteCodeModule& bcm) case DupInsertNOp: { uint16 u = bcm.getShort(i); - printFormat(f, "%uh", i); + printFormat(f, "%uh", u); i += 2; } break;