mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 22:52:22 +02:00
LibJS: Don't assume PropertyKey is always string in bytecode dumps
It could also be a number.
This commit is contained in:
committed by
Andreas Kling
parent
986e30a140
commit
e38c6062d3
Notes:
github-actions[bot]
2026-02-06 11:23:06 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/e38c6062d33 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7539
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user