LibJS: Don't assume PropertyKey is always string in bytecode dumps

It could also be a number.
This commit is contained in:
Andreas Kling
2026-01-20 15:17:11 +01:00
committed by Andreas Kling
parent 986e30a140
commit e38c6062d3
Notes: github-actions[bot] 2026-02-06 11:23:06 +00:00

View File

@@ -493,7 +493,7 @@ def generate_to_byte_string_impl(op: OpDef) -> str:
if t == "PropertyKeyTableIndex":
lines.append(
f' append_piece(ByteString::formatted("{label}:{{}}", executable.property_key_table->get({f.name}).as_string()));'
f' append_piece(ByteString::formatted("{label}:{{}}", executable.property_key_table->get({f.name})));'
)
lines.append("")
continue