ladybird/Tests/LibJS/Bytecode/expected/invalid-lhs-forin-no-dead-code.txt
Andreas Kling 21cbfb3cb1 LibJS: Drop source ranges from bytecode source maps
Store source map locations as bytecode offset, line, and column.
Runtime consumers only emit the start line and column, so source end
positions and source text offsets do not need to be carried through
Executable source maps, bytecode cache serialization, or the Rust FFI.

Keep SourceCode's internal position cache able to track source text
offsets so callers can still translate source offsets to line and
column pairs when needed. Hash dump-bytecode IDs from the name, first
source position, and bytecode size instead of source slices that need
end offsets.

Bump the bytecode cache format version for the slimmer serialized
source map entry shape.
2026-05-14 09:41:03 +02:00

30 lines
803 B
Text

$03b9f5e5 invalid-lhs-forin-no-dead-code.js:6:6
Registers: 11
Blocks: 6
Constants:
[0] = Undefined
block0:
[ 0] NewArray dst:reg5
[ 10] JumpNullish condition:reg5, true_target:block3, false_target:block4
block1:
[ 20] End value:reg5
block2:
[ 28] ObjectPropertyIteratorNext dst_value:reg7, dst_done:reg8, iterator_object:reg6
[ 38] JumpIf condition:reg8, true_target:block1, false_target:block5
block3:
[ 48] End value:reg5
block4:
[ 50] GetObjectPropertyIterator dst_iterator:reg6, object:reg5
[ 68] Mov dst:reg5, src:Undefined
[ 78] Jump target:block2
block5:
[ 80] GetGlobal dst:reg10, `f`
[ 98] Call dst:reg9, callee:reg10, this_value:Undefined, f
[ b8] NewReferenceError dst:reg9, Invalid left-hand side in assignment
[ c8] Throw src:reg9